From: Peter Zotov Date: Wed, 29 Oct 2014 08:16:06 +0000 (+0000) Subject: [OCaml] If compiled without --enable-shared, hide packages from toplevel. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=2e9579037de6b05ea436abf6d4bf24d9a278942b;ds=sidebyside [OCaml] If compiled without --enable-shared, hide packages from toplevel. 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 --- diff --git a/bindings/ocaml/backends/META.llvm_backend.in b/bindings/ocaml/backends/META.llvm_backend.in index 6c1e8c47259..a0f62f735e4 100644 --- a/bindings/ocaml/backends/META.llvm_backend.in +++ b/bindings/ocaml/backends/META.llvm_backend.in @@ -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 = "." diff --git a/bindings/ocaml/llvm/META.llvm.in b/bindings/ocaml/llvm/META.llvm.in index 6449480ae9e..c8eedb8f19f 100644 --- a/bindings/ocaml/llvm/META.llvm.in +++ b/bindings/ocaml/llvm/META.llvm.in @@ -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" (