[zorg] r263616 - disable LTO on bots using new LLVM_ENABLE_LTO=Off option: part 2
Marc Schifer via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 20:46:44 PDT 2016
Author: mschifer
Date: Tue Mar 15 22:46:43 2016
New Revision: 263616
URL: http://llvm.org/viewvc/llvm-project?rev=263616&view=rev
Log:
disable LTO on bots using new LLVM_ENABLE_LTO=Off option: part 2
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=263616&r1=263615&r2=263616&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Tue Mar 15 22:46:43 2016
@@ -178,12 +178,14 @@ def cmake_builder(target):
compiler_flags = conf.compiler_flags
max_parallel_links = conf.max_parallel_links
+
if conf.lto:
- compiler_flags += ['-flto']
+ 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
else:
+ cmake_cmd += ['-DLLVM_ENABLE_LTO=Off']
cmake_cmd += ['-DLLVM_BUILD_EXAMPLES=On']
cmake_cmd += ["-DPACKAGE_VERSION=3.8.0",
@@ -325,17 +327,11 @@ def clang_builder(target):
if conf.max_parallel_tests:
lit_flags += ['-j', conf.max_parallel_tests]
cmake_command.extend(['-DLLVM_LIT_ARGS={}'.format(' '.join(lit_flags))])
-
+
if conf.lto:
- cmake_command.extend([
- '-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -flto -gline-tables-only -DNDEBUG',
- '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -flto -gline-tables-only -DNDEBUG'])
cmake_command.extend(["-DLLVM_PARALLEL_LINK_JOBS=" + str(max_link_jobs())])
else:
- cmake_command.extend([
- '-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -gline-tables-only -DNDEBUG',
- '-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -gline-tables-only -DNDEBUG'])
-
+ cmake_command.extend('-DLLVM_ENABLE_LTO=Off')
cmake_command.append("{}/llvm".format(conf.workspace))
run_cmd(os.path.join(clang_br, 'Build'), cmake_command)
More information about the llvm-commits
mailing list