[OCaml] Dynamically link LLVM on --enable-shared builds
authorPeter Zotov <whitequark@whitequark.org>
Tue, 12 Nov 2013 20:55:49 +0000 (20:55 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Tue, 12 Nov 2013 20:55:49 +0000 (20:55 +0000)
commit1ba15ab1340e07d3456e6b91574f15423bdd30e6
tree638a88bbfd1969e5cb0bb0e2cf7ea39aac44c000
parent850b520114dd6bd86fc8741201b9beea88f96599
[OCaml] Dynamically link LLVM on --enable-shared builds

This commit significantly speeds up both bytecode and native
builds of LLVM clients (from ~20 second to sub-second link time),
and allows to invoke LLVM functions from OCaml toplevel.

The behavior for --disable-shared builds is unchanged.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194509 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/ocaml/Makefile.ocaml
test/Makefile