forked from OSchip/llvm-project
[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:
parent
52dd98bd1e
commit
d4143bc772
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue