OpamFile.CompCompiler version $opam/compilers/. Deprecated, only used to upgrade old data
include IO_FILEval format_version : OpamVersion.tval empty : tEmpty file
val write : t typed_file -> t -> unitWrite some contents to a file
val read : t typed_file -> tRead file contents. Raise an error if the file does not exist.
val read_opt : t typed_file -> t optionReturns None on non-existing file
val safe_read : t typed_file -> tRead file contents. Return empty if the file does not exist.
val read_from_channel : ?filename:t typed_file -> in_channel -> tval read_from_string : ?filename:t typed_file -> string -> tval write_to_channel : ?filename:t typed_file -> out_channel -> t -> unitval write_to_string : ?filename:t typed_file -> t -> stringval create_preinstalled : compiler -> compiler_version -> OpamTypes.name list -> OpamTypes.env_update list -> tCreate a pre-installed compiler description file
val preinstalled : t -> boolIs it a pre-installed compiler description file
val opam_version : t -> OpamTypes.opam_versionGet OPAM version
val version : t -> compiler_versionReturn the compiler version
val src : t -> OpamTypes.url optionReturn the url of the compiler
val patches : t -> OpamTypes.url listReturn the list of patches to apply
val configure : t -> string listOptions to give to the "./configure" command
val make : t -> string listOptions to give to the "make" command
val build : t -> OpamTypes.command listOptions to give to build the package. If this one is provided, nothing should be specified for configure and make.
val packages : t -> OpamTypes.formulaPackages to install immediately after the creation of OCaml
val env : t -> OpamTypes.env_update listEnvironment variable to set-up before running commands in the subtree
val tags : t -> string listval with_src : OpamTypes.url option -> t -> tval with_patches : OpamTypes.url list -> t -> tval with_build : OpamTypes.command list -> t -> tval with_packages : OpamTypes.formula -> t -> tval to_package : ?package:OpamTypes.package -> t -> Descr.t option -> OPAM.tConverts a compiler definition to package metadata. For compat. If package is unspecified, a package named "ocaml" is created for "standard" compilers (when the compiler name doesn't contain a "+" and is equal to the compiler version); otherwise, a package "ocaml-VARIANT" is created with "VARIANT" the part of the compiler name on the right of the "+". In both case, the version corresponds to the OCaml version and is version comp.