Respect --llvm-opts when performing --llvm-lto=2
This commit is contained in:
Родитель
eff15fba84
Коммит
66553e26a8
4
emcc
4
emcc
|
@ -1195,8 +1195,8 @@ try:
|
||||||
link_opts = [] if debug_level >= 4 else ['-strip-debug'] # remove LLVM debug if we are not asked for it
|
link_opts = [] if debug_level >= 4 else ['-strip-debug'] # remove LLVM debug if we are not asked for it
|
||||||
|
|
||||||
if llvm_lto >= 2:
|
if llvm_lto >= 2:
|
||||||
logging.debug('running LLVM opt -O3 as pre-LTO')
|
logging.debug('running LLVM opts as pre-LTO')
|
||||||
shared.Building.llvm_opt(in_temp(target_basename + '.bc'), ['-O3'])
|
shared.Building.llvm_opt(in_temp(target_basename + '.bc'), llvm_opts)
|
||||||
if DEBUG: save_intermediate('opt', 'bc')
|
if DEBUG: save_intermediate('opt', 'bc')
|
||||||
|
|
||||||
# If we can LTO, do it before dce, since it opens up dce opportunities
|
# If we can LTO, do it before dce, since it opens up dce opportunities
|
||||||
|
|
Загрузка…
Ссылка в новой задаче