[llvm-bugs] [Bug 34115] New: Fix LLVM_OCAML_OUT_OF_TREE

via llvm-bugs 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
           Version: trunk
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          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
  --> https://bugs.llvm.org/attachment.cgi?id=18944&action=edit
The fix

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...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170808/fced3060/attachment.html>

More information about the llvm-bugs mailing list