[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 6c1e8c4..a0f62f7 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 6449480..c8eedb8 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" (