[PATCH] D26649: [CMake] Support lld with LTO bootstrap
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 14 19:00:56 PST 2016
phosek added a comment.
In https://reviews.llvm.org/D26649#595367, @mehdi_amini wrote:
> OK, but still, LLVM_ENABLE_LLD needs to be passed to stage-2, so it needs to be actually BOOTSTRAP_LLVM_ENABLE_LLD.
> I looked at all the CMake `_PASSTHROUGH` and didn't find it mentioned anywhere. We could make it auto-forwarded in this case maybe, @beanz is best to answer this.
>
> Have you looked into turning `if(LLVM_ENABLE_LLD)` into `if(BOOTSTRAP_LLVM_ENABLE_LLD)`?
> Technically we may want to have the stage-2 linked with lld even if lld is not on the system and not available during stage1.
Yes, I just finished a test build and `BOOTSTRAP_LLVM_ENABLE_LLD` seems to work, see the updated diff.
Repository:
rL LLVM
https://reviews.llvm.org/D26649
More information about the cfe-commits
mailing list