[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.

llvm-svn: 220845

llvm/bindings/ocaml/backends/META.llvm_backend.in
llvm/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" (