1 This directory contains LLVM bindings for the OCaml programming language
9 * CMake (to build LLVM).
14 If all dependencies are present, the bindings will be built and installed
15 as a part of the default CMake configuration, with no further action.
16 They will only work with the specific OCaml compiler detected during the build.
18 The bindings can also be built out-of-tree, i.e. targeting a preinstalled
19 LLVM. To do this, configure the LLVM build tree as follows:
21 $ cmake -DLLVM_OCAML_OUT_OF_TREE=TRUE \
22 -DCMAKE_INSTALL_PREFIX=[Preinstalled LLVM path] \
23 -DLLVM_OCAML_INSTALL_PATH=[OCaml install prefix] \
24 [... any other options]
26 then build and install it as:
29 $ cmake -P bindings/ocaml/cmake_install.cmake