Module Ocaml_configSource

Represent the output of ocamlc -config and contents of Makefile.config.

This library is internal to dune and guarantees no API stability.

Sourcetype t

Represent a parsed and interpreted output of ocamlc -config and contents of Makefile.config.

Sourcemodule Prog_and_args : sig ... end

Raw bindings

Sourcemodule Vars : sig ... end

Represent the parsed but uninterpreted output of ocamlc -config or contents of Makefile.config.

Creation

Sourcemodule Origin : sig ... end
Sourcemodule Os_type : sig ... end
Sourcemodule Ccomp_type : sig ... end
Sourceval make : Vars.t -> (t, Origin.t * string) result

Interpret raw bindings (this function also loads the Makefile.config file in the stdlib directory).

Query

The following parameters match the variables in the output of ocamlc -config but are stable across versions of OCaml.

Sourceval version : t -> int * int * int
Sourceval version_string : t -> string
Sourceval standard_library_default : t -> string
Sourceval standard_library : t -> string
Sourceval standard_runtime : t -> string
Sourceval ccomp_type : t -> Ccomp_type.t
Sourceval c_compiler : t -> string
Sourceval ocamlc_cflags : t -> string list
Sourceval ocamlc_cppflags : t -> string list
Sourceval ocamlopt_cflags : t -> string list
Sourceval ocamlopt_cppflags : t -> string list
Sourceval bytecomp_c_compiler : t -> Prog_and_args.t
Sourceval bytecomp_c_libraries : t -> string list
Sourceval native_c_compiler : t -> Prog_and_args.t
Sourceval native_c_libraries : t -> string list
Sourceval cc_profile : t -> string list
Sourceval architecture : t -> string
Sourceval model : t -> string
Sourceval int_size : t -> int
Sourceval word_size : t -> int
Sourceval system : t -> string
Sourceval asm_cfi_supported : t -> bool
Sourceval with_frame_pointers : t -> bool
Sourceval ext_exe : t -> string
Sourceval ext_obj : t -> string
Sourceval ext_asm : t -> string
Sourceval ext_lib : t -> string
Sourceval ext_dll : t -> string
Sourceval os_type : t -> Os_type.t
Sourceval default_executable_name : t -> string
Sourceval systhread_supported : t -> bool
Sourceval host : t -> string
Sourceval target : t -> string
Sourceval profiling : t -> bool
Sourceval flambda : t -> bool
Sourceval spacetime : t -> bool
Sourceval safe_string : t -> bool
Sourceval exec_magic_number : t -> string
Sourceval cmi_magic_number : t -> string
Sourceval cmo_magic_number : t -> string
Sourceval cma_magic_number : t -> string
Sourceval cmx_magic_number : t -> string
Sourceval cmxa_magic_number : t -> string
Sourceval ast_impl_magic_number : t -> string
Sourceval ast_intf_magic_number : t -> string
Sourceval cmxs_magic_number : t -> string
Sourceval cmt_magic_number : t -> string
Sourceval supports_shared_libraries : t -> bool
Sourceval windows_unicode : t -> bool

Values

Sourcemodule Value : sig ... end
Sourceval to_list : t -> (string * Value.t) list
Sourceval is_dev_version : t -> bool