aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2013-11-12 20:55:49 +0000
committerPeter Zotov <whitequark@whitequark.org>2013-11-12 20:55:49 +0000
commit1ba15ab1340e07d3456e6b91574f15423bdd30e6 (patch)
tree638a88bbfd1969e5cb0bb0e2cf7ea39aac44c000 /test/Makefile
parent850b520114dd6bd86fc8741201b9beea88f96599 (diff)
downloadexternal_llvm-1ba15ab1340e07d3456e6b91574f15423bdd30e6.zip
external_llvm-1ba15ab1340e07d3456e6b91574f15423bdd30e6.tar.gz
external_llvm-1ba15ab1340e07d3456e6b91574f15423bdd30e6.tar.bz2
[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
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index fc85f24..d3227dd 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -126,7 +126,7 @@ lit.site.cfg: FORCE
@$(ECHOPATH) s=@SHLIBDIR@=$(SharedLibDir)=g >> lit.tmp
@$(ECHOPATH) s=@SHLIBEXT@=$(SHLIBEXT)=g >> lit.tmp
@$(ECHOPATH) s=@PYTHON_EXECUTABLE@=$(PYTHON)=g >> lit.tmp
- @$(ECHOPATH) s=@OCAMLOPT@=$(OCAMLOPT) -cc $(subst *,'\\\"',*$(subst =,"\\=",$(CXX_FOR_OCAMLOPT))*) -I $(LibDir)/ocaml=g >> lit.tmp
+ @$(ECHOPATH) s=@OCAMLOPT@=$(OCAMLOPT) -cc $(subst *,'\\\"',*$(subst =,"\\=",$(CXX_FOR_OCAMLOPT))*) -cclib -L$(LibDir) -I $(LibDir)/ocaml=g >> lit.tmp
@$(ECHOPATH) s=@ENABLE_SHARED@=$(ENABLE_SHARED)=g >> lit.tmp
@$(ECHOPATH) s=@ENABLE_ASSERTIONS@=$(ENABLE_ASSERTIONS)=g >> lit.tmp
@$(ECHOPATH) s=@TARGETS_TO_BUILD@=$(TARGETS_TO_BUILD)=g >> lit.tmp