From 2ae0202ef135697860741f591c41433a3d329c9e Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Thu, 19 Jul 2018 16:12:15 +0000 Subject: [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 --- test/lit.common.cfg | 5 ++--- 1 file 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: -- cgit v1.2.3