[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
This commit is contained in:
Peter Zotov 2014-10-29 08:16:06 +00:00
parent 5f28729c61
commit ad383afad4
2 changed files with 2 additions and 0 deletions

View File

@ -4,4 +4,5 @@ description = "@TARGET@ Backend for LLVM"
requires = "llvm" requires = "llvm"
archive(byte) = "llvm_@TARGET@.cma" archive(byte) = "llvm_@TARGET@.cma"
archive(native) = "llvm_@TARGET@.cmxa" archive(native) = "llvm_@TARGET@.cmxa"
exists_if(toplevel) = "dllllvm.so"
directory = "." directory = "."

View File

@ -3,6 +3,7 @@ version = "@PACKAGE_VERSION@"
description = "LLVM OCaml bindings" description = "LLVM OCaml bindings"
archive(byte) = "llvm.cma" archive(byte) = "llvm.cma"
archive(native) = "llvm.cmxa" archive(native) = "llvm.cmxa"
exists_if(toplevel) = "dllllvm.so"
directory = "." directory = "."
package "analysis" ( package "analysis" (