[PATCH] D26649: [CMake] Support lld with LTO bootstrap

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 15 12:26:03 PST 2016


phosek added a comment.

In https://reviews.llvm.org/D26649#596209, @mehdi_amini wrote:

> @beanz : don't you think that it should be handled at the top level and not in the bootstrap logic?
>  Right now we don't error when invoking cmake with  `-DLLVM_ENABLE_LLD=ON` and `-DLLVM_ENABLE_LTO=ON` on Darwin.


That might a better approach, I tried invoking `-DLLVM_ENABLE_LLD=ON` on Darwin and it fails, even without `LLVM_ENABLE_LTO`; the `CXX_SUPPORTS_LLD` check which checks whether lld is supported by the driver succeeds, but all subsequent ones fail because lld fails.


Repository:
  rL LLVM

https://reviews.llvm.org/D26649





More information about the cfe-commits mailing list