summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-07-19 16:12:15 +0000
committerTeresa Johnson <tejohnson@google.com>2018-07-19 16:12:15 +0000
commit2ae0202ef135697860741f591c41433a3d329c9e (patch)
treeac2dc375c685afe9b80ac9768850e7d05001b3e0 /test
parent07cb3aef72fdd15c627ba7cd51024f95d16d7c97 (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/lit.common.cfg5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/lit.common.cfg b/test/lit.common.cfg
index e860be4bc..5274b49c6 100644
--- a/test/lit.common.cfg
+++ b/test/lit.common.cfg
@@ -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: