This is an archive of the discontinued LLVM Phabricator instance.

cmake: Install the OCaml libraries in a package subdirectory
AbandonedPublic

Authored by mgorny on Sep 8 2016, 10:01 AM.

Details

Reviewers
whitequark
Summary

Install the OCaml libraries in a dedicated subdirectory of lib/ocaml rather than top-level.

The top-level directory is reserved for the standard library, and has precedence over local directory in search path. As a result, OCaml preferred the files installed along with previous LLVM version over the source tree when building a new version, resulting in two versions being mixed during the build.

The subdirectory layout is the standard layout used by other OCaml packages, and findlib is able to find the LLVM libraries successfully in the subdirectory.

Bug: https://bugs.gentoo.org/559624

Diff Detail

Event Timeline

mgorny updated this revision to Diff 70718.Sep 8 2016, 10:01 AM
mgorny retitled this revision from to cmake: Install the OCaml libraries in a package subdirectory.
mgorny updated this object.
mgorny added a reviewer: whitequark.
mgorny added a subscriber: llvm-commits.