[zorg] r297359 - Do not use parallel link jobs with ThinLTO on Green Dragon
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 8 21:03:53 PST 2017
Author: mehdi_amini
Date: Wed Mar 8 23:03:53 2017
New Revision: 297359
URL: http://llvm.org/viewvc/llvm-project?rev=297359&view=rev
Log:
Do not use parallel link jobs with ThinLTO on Green Dragon
Modified:
zorg/trunk/zorg/jenkins/build.py
Modified: zorg/trunk/zorg/jenkins/build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/build.py?rev=297359&r1=297358&r2=297359&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Wed Mar 8 23:03:53 2017
@@ -187,7 +187,10 @@ def cmake_builder(target):
max_parallel_links = conf.max_parallel_links
if conf.lto:
- cmake_cmd += ["-DLLVM_PARALLEL_LINK_JOBS=" + str(max_link_jobs())]
+ if conf.thinlto:
+ cmake_cmd += ["-DLLVM_PARALLEL_LINK_JOBS=1"]
+ else:
+ cmake_cmd += ["-DLLVM_PARALLEL_LINK_JOBS=" + str(max_link_jobs())]
cmake_cmd += ['-DLLVM_BUILD_EXAMPLES=Off']
if not max_parallel_links:
max_parallel_links = 1
@@ -374,7 +377,9 @@ def clang_builder(target):
cmake_command.extend(
['-DLLVM_LIT_ARGS={}'.format(' '.join(lit_flags))])
- if conf.lto:
+ if conf.thinlto:
+ cmake_command.extend(["-DLLVM_PARALLEL_LINK_JOBS=1"])
+ elif conf.lto:
cmake_command.extend(
["-DLLVM_PARALLEL_LINK_JOBS=" + str(max_link_jobs())])
else:
More information about the llvm-commits
mailing list