[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:
parent
5f28729c61
commit
ad383afad4
|
@ -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 = "."
|
||||||
|
|
|
@ -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" (
|
||||||
|
|
Loading…
Reference in New Issue