annotate llvm/bindings/ocaml/README.txt @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 This directory contains LLVM bindings for the OCaml programming language
anatofuz
parents:
diff changeset
2 (http://ocaml.org).
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 Prerequisites
anatofuz
parents:
diff changeset
5 -------------
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 * OCaml 4.00.0+.
anatofuz
parents:
diff changeset
8 * ctypes 0.4+.
anatofuz
parents:
diff changeset
9 * oUnit 2+ (only required for tests).
anatofuz
parents:
diff changeset
10 * CMake (to build LLVM).
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 Building the bindings
anatofuz
parents:
diff changeset
13 ---------------------
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 If all dependencies are present, the bindings will be built and installed
anatofuz
parents:
diff changeset
16 as a part of the default CMake configuration, with no further action.
anatofuz
parents:
diff changeset
17 They will only work with the specific OCaml compiler detected during the build.
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 The bindings can also be built out-of-tree, i.e. targeting a preinstalled
anatofuz
parents:
diff changeset
20 LLVM. To do this, configure the LLVM build tree as follows:
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 $ cmake -DLLVM_OCAML_OUT_OF_TREE=TRUE \
anatofuz
parents:
diff changeset
23 -DCMAKE_INSTALL_PREFIX=[OCaml install prefix] \
anatofuz
parents:
diff changeset
24 [... any other options]
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 then build and install it as:
anatofuz
parents:
diff changeset
27
anatofuz
parents:
diff changeset
28 $ make ocaml_all
anatofuz
parents:
diff changeset
29 $ cmake -P bindings/ocaml/cmake_install.cmake