summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2014-10-29 08:16:06 +0000
committerPeter Zotov <whitequark@whitequark.org>2014-10-29 08:16:06 +0000
commit2e9579037de6b05ea436abf6d4bf24d9a278942b (patch)
treed78f64cc743f33778ebc348abaaac290a30df689 /bindings
parenta226572e59f8a270a90bfa6100c891cccf1af244 (diff)
[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
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ocaml/backends/META.llvm_backend.in1
-rw-r--r--bindings/ocaml/llvm/META.llvm.in1
2 files changed, 2 insertions, 0 deletions
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" (