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

Mehdi AMINI via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 14 17:44:26 PST 2016


mehdi_amini added a comment.

In https://reviews.llvm.org/D26649#595296, @phosek wrote:

> It's sufficient, I just tested it. I'm not actually sure if `LLVM_ENABLE_LLD` here is correct, `LLVM_ENABLE_LLD` forces the use of lld, but lld might not be available during first stage. We need `LLVM_ENABLE_LLD` to be set, but only for the second stage (which is something that can be done in the cache file), in the first stage we should probably just check whether lld source is available and we're building it, but I'm not sure what's the easiest/cleanest way to do that?


`-DBOOTSTRAP_ LLVM_ENABLE_LLD` is the right way to check for stage-2 options.

If you look just a few lines above your check you'll see an example of check for `BOOTSTRAP_LLVM_ENABLE_LTO`


Repository:
  rL LLVM

https://reviews.llvm.org/D26649





More information about the cfe-commits mailing list