[zorg] r297359 - Do not use parallel link jobs with ThinLTO on Green Dragon

Tobias Edler von Koch via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 09:59:17 PDT 2017


On 03/13/2017 12:05 PM, Mehdi Amini via llvm-commits wrote:
> I also plan to add a CMake warning in LLVM when ThinLTO is enabled but 
> LLVM_PARALLEL_LINK_JOBS isn’t set. This is unlikely that it is 
> intended by the end user.

Wouldn't it make most sense to default to LLVM_PARALLEL_LINK_JOBS=1 when 
ThinLTO is enabled and LLVM_PARALLEL_LINK_JOBS isn't set? Otherwise 
you're basically requiring everyone to set an additional option when 
enabling ThinLTO.

Actually, you could warn if LLVM_PARALLEL_LINK_JOBS is explicitly set to 
!= 1 with ThinLTO, because that's likely unintended.

Tobias

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.



More information about the llvm-commits mailing list