summaryrefslogtreecommitdiffstats
path: root/llvm/bindings/ocaml/backends
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
commitad383afad46a8d1e733439b917c7c07801ff8338 (patch)
tree6d1b0294f0cbe285e845510ab5ecbfd6ab868399 /llvm/bindings/ocaml/backends
parent5f28729c61232e7a941e320f9e6985112d5bf6bd (diff)
downloadbcm5719-llvm-ad383afad46a8d1e733439b917c7c07801ff8338.tar.gz
bcm5719-llvm-ad383afad46a8d1e733439b917c7c07801ff8338.zip
[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. llvm-svn: 220845
Diffstat (limited to 'llvm/bindings/ocaml/backends')
-rw-r--r--llvm/bindings/ocaml/backends/META.llvm_backend.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/bindings/ocaml/backends/META.llvm_backend.in b/llvm/bindings/ocaml/backends/META.llvm_backend.in
index 6c1e8c47259..a0f62f735e4 100644
--- a/llvm/bindings/ocaml/backends/META.llvm_backend.in
+++ b/llvm/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 = "."
OpenPOWER on IntegriCloud