[llvm] r220845 - [OCaml] If compiled without --enable-shared, hide packages from toplevel.

Peter Zotov whitequark at whitequark.org
Wed Oct 29 01:16:06 PDT 2014


Author: whitequark
Date: Wed Oct 29 03:16:06 2014
New Revision: 220845

URL: http://llvm.org/viewvc/llvm-project?rev=220845&view=rev
Log:
[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.

Modified:
    llvm/trunk/bindings/ocaml/backends/META.llvm_backend.in
    llvm/trunk/bindings/ocaml/llvm/META.llvm.in

Modified: llvm/trunk/bindings/ocaml/backends/META.llvm_backend.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/backends/META.llvm_backend.in?rev=220845&r1=220844&r2=220845&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/backends/META.llvm_backend.in (original)
+++ llvm/trunk/bindings/ocaml/backends/META.llvm_backend.in Wed Oct 29 03:16:06 2014
@@ -4,4 +4,5 @@ description = "@TARGET@ Backend for LLVM
 requires = "llvm"
 archive(byte) = "llvm_ at TARGET@.cma"
 archive(native) = "llvm_ at TARGET@.cmxa"
+exists_if(toplevel) = "dllllvm.so"
 directory = "."

Modified: llvm/trunk/bindings/ocaml/llvm/META.llvm.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/llvm/META.llvm.in?rev=220845&r1=220844&r2=220845&view=diff
==============================================================================
--- llvm/trunk/bindings/ocaml/llvm/META.llvm.in (original)
+++ llvm/trunk/bindings/ocaml/llvm/META.llvm.in Wed Oct 29 03:16:06 2014
@@ -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" (





More information about the llvm-commits mailing list