[OCaml] If compiled without --enable-shared, hide packages from toplevel.
authorPeter Zotov <whitequark@whitequark.org>
Wed, 29 Oct 2014 08:16:06 +0000 (08:16 +0000)
committerPeter Zotov <whitequark@whitequark.org>
Wed, 29 Oct 2014 08:16:06 +0000 (08:16 +0000)
Pretend they do not exist using exists_if. This is better than
the current situation, which is the error:

    Error: The external function `llvm_global_succ' is not available

but still somewhat confusing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220845 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/ocaml/backends/META.llvm_backend.in
bindings/ocaml/llvm/META.llvm.in

index 6c1e8c472596ed260494560de8c2eaeb012c883c..a0f62f735e4d2ebaa1a26529fa51e973a98b858b 100644 (file)
@@ -4,4 +4,5 @@ description = "@TARGET@ Backend for LLVM"
 requires = "llvm"
 archive(byte) = "llvm_@TARGET@.cma"
 archive(native) = "llvm_@TARGET@.cmxa"
+exists_if(toplevel) = "dllllvm.so"
 directory = "."
index 6449480ae9eff77a76e8494c3852d69f7ba8790c..c8eedb8f19f1f85a786cd367a07f3d036367791e 100644 (file)
@@ -3,6 +3,7 @@ version = "@PACKAGE_VERSION@"
 description = "LLVM OCaml bindings"
 archive(byte) = "llvm.cma"
 archive(native) = "llvm.cmxa"
+exists_if(toplevel) = "dllllvm.so"
 directory = "."
 
 package "analysis" (