package ocaml-version

  1. Overview
  2. Docs

Opam 2.0 functions

val package : t -> string * string

package t returns the (name, version) pair corresponding to the opam2 package for that compiler version.

val additional_packages : t -> string list

additional_packages t returns the list of opam packages which need to be installed in addition to the package t.

val name : t -> string

name t returns the opam2 package for that compiler version.

val variant_switch : t -> Configure_options.o list -> t

variant_switch t cs returns an OCaml version t whose variant version field reflects the configuration options in cs

val switches : arch -> t -> t list

switches arch t returns the list of opam switches that are available for that compiler and architecture combination. For example, an x86_64 one would yield a list that includes flambda and the flambda-with-frame-pointer combinations.

OCaml

Innovation. Community. Security.