1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[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 abfbb4539f
commit 7624f67acb
2 changed files with 2 additions and 0 deletions

View File

@ -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 = "."

View File

@ -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" (