[compiler-rt] r337467 - [compiler-rt] Only set lto_flags if lto_supported
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 19 09:12:15 PDT 2018
Author: tejohnson
Date: Thu Jul 19 09:12:15 2018
New Revision: 337467
URL: http://llvm.org/viewvc/llvm-project?rev=337467&view=rev
Log:
[compiler-rt] Only set lto_flags if lto_supported
Fix bot failure from r37465. Move the new lto_flags append under the
check for whether lto_supported. Otherwise TestingConfig may not have
that member.
Modified:
compiler-rt/trunk/test/lit.common.cfg
Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=337467&r1=337466&r2=337467&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Thu Jul 19 09:12:15 2018
@@ -316,9 +316,8 @@ if config.lto_supported:
config.lto_flags += ["-flto=thin"]
else:
config.lto_flags += ["-flto"]
-
-if config.use_newpm:
- config.lto_flags += ["-fexperimental-new-pass-manager"]
+ if config.use_newpm:
+ config.lto_flags += ["-fexperimental-new-pass-manager"]
# Ask llvm-config about assertion mode.
try:
More information about the llvm-commits
mailing list