Up

module OpamCompiler

: sig

Compiler names and versions

#
module Version : sig

OCaml compiler versions

include OpamMisc.ABSTRACT
#
type constr = (OpamFormula.relop * t) OpamFormula.formula

Compiler constraint

#
val current : unit -> t option

Return the version of the compiler currently installed

#
val system : unit -> t option

Returm the version of the system compiler

#
val compare : t -> t -> int

Compare OCaml versions

#
val eval_relop : OpamFormula.relop -> t -> t -> bool

Evaluate a relational operator between OCaml versions

end
include OpamMisc.ABSTRACT
#
val of_filename : OpamFilename.t -> t option

Convert a filename into a compiler name. This function extract name from /path/to/$name.comp.

#
val list : OpamFilename.Dir.t -> Set.t

List the compiler available in the global state.

#
val prefixes : OpamFilename.Dir.t -> string option Map.t

List the compiler available in a directory (and their prefix)

#
val system : t

System compiler

#
val unknown : t -> 'a

Errors

#
val version : t -> Version.t

Return the compiler version

end