How to build static OCaml for trunk?

For example for OCaml 4.09.0 you can just do opam switch create 4.09.0+musl+static+flambda, but beta compilers, e.g. 4.10.0 and 4.11.0 do not have these switches (musl+static) in the opam, after you add the ocaml-beta-repository. What is the recommended way to build them for static builds then?

CC=musl-gcc opam switch create …
1 Like