OpamCompiler

# Module OpamCompiler

    module OpamCompiler: sig .. end

Compiler names and versions

    module Version: sig .. end

OCaml compiler versions

    include OpamMisc.ABSTRACT

Compiler names

    val version : t -> Version.t

Return the compiler version

    val get_current : unit -> t option

Return the current compiler at its currently installed version

    val get_system : unit -> t option

Return the system compiler at is current version. Warning, this is different from `system` which is a static string with version `"system"`

    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