[llvm-bugs] [Bug 34115] New: Fix LLVM_OCAML_OUT_OF_TREE
llvm-bugs at lists.llvm.org
Tue Aug 8 03:35:38 PDT 2017
Bug ID: 34115
Summary: Fix LLVM_OCAML_OUT_OF_TREE
Product: Build scripts
Assignee: unassignedbugs at nondot.org
Reporter: jp.deplaix at gmail.com
CC: llvm-bugs at lists.llvm.org, mgorny at gentoo.org,
whitequark at whitequark.org
Created attachment 18944
If OCaml is not installed in the same tree as LLVM (e.g. with OPAM), the build
script doesn't work. Moreover, if SHARED_LIBS is enabled, the resulting binding
won't be dynamically linked.
Here is a patch that tries to fix these two issues.
The patch also fixes the build instructions.
I also tried to allow both static and shared libraries if possible (see OPAM
package) but my level of comprehension of CMake is quite limited so I gave up.
But if anybody have any idea how to do that better, please feel free to discuss
this matter here.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs