[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.

llvm-svn: 337467
This commit is contained in:
Teresa Johnson 2018-07-19 16:12:15 +00:00
parent 52dd98bd1e
commit d4143bc772
1 changed files with 2 additions and 3 deletions

View File

@ -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: