[PATCH] D25932: Unconditionally pass `-lto_library` to the linker on Darwin

Jack Howarth via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 27 11:09:43 PDT 2016


jwhowarth added a comment.

In https://reviews.llvm.org/D25932#581167, @mehdi_amini wrote:

> I just verified that I reproduce with -flto and an previous clang version.


This issue will only be triggered if you build with "-DCMAKE_INSTALL_PREFIX:PATH=/sw/opt/llvm-4.0" to place llvm in a buried subdirectory and access the compilers with symlinks in /sw/bin pointing at the actual compilers in /sw/opt/llvm-4.0/bin. The call to llvm::sys::path::parent_path(D.getInstalledDir()) incorrectly places the install level at /sw instead of the actual sw/opt/llvm-4.0.


Repository:
  rL LLVM

https://reviews.llvm.org/D25932





More information about the cfe-commits mailing list