Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions doc/pages/Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,18 @@ or set of opam packages.
Creating a new switch requires re-compiling OCaml, unless you use the
`ocaml-system` package, that relies on the global OCaml installation.

When using the default [opam-repository](https://github.com/ocaml/opam-repository/),
if you want to tweak the configuration of the compiler, you can switch to the option variant with:
```
opam switch create <name> ocaml-variants.<ocaml-version>+options <option_list>...
```

where `<option_list>` is a space-separated list of `ocaml-option-*` packages.
For instance, to create a switch with OCaml 5.4.0 with both `flambda` and `no-flat-float-array` enabled:
```
opam switch create 5.4.0+flambda+nffa ocaml-variants.5.4.0+options ocaml-option-flambda ocaml-option-no-flat-float-array
```

### opam pin

This command allows one to pin a package to a specific version, but has been
Expand Down
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ users)
## Github Actions

## Doc
* Document how to create a switch with some OCaml compiler configure-time options [#6777 @kit-ty-kate - fix #6645]

## Security fixes

Expand Down