Skip to content

Instantly share code, notes, and snippets.

View robertfeliciano's full-sized avatar
🐈
wish i was a cat

Robert Feliciano robertfeliciano

🐈
wish i was a cat
View GitHub Profile
@robertfeliciano
robertfeliciano / change_ocaml_compiler.md
Last active April 13, 2025 23:25
How to create an Opam switch with a custom C compiler

How to create an Opam switch with a custom C compiler

You can use Dune to compile the C++ code.

Here's how you can create a custom Opam switch that uses Clang rather than GCC.

Install dependencies

Make sure you have the following packages on your system: libcxx-devel libcxxabi-devel