Respect --llvm-opts when performing --llvm-lto=2

This commit is contained in:
Ryan Kelly 2014-09-07 17:02:29 +10:00
Родитель eff15fba84
Коммит 66553e26a8
1 изменённых файлов: 2 добавлений и 2 удалений

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
if llvm_lto >= 2:
logging.debug('running LLVM opt -O3 as pre-LTO')
shared.Building.llvm_opt(in_temp(target_basename + '.bc'), ['-O3'])
logging.debug('running LLVM opts as pre-LTO')
shared.Building.llvm_opt(in_temp(target_basename + '.bc'), llvm_opts)
if DEBUG: save_intermediate('opt', 'bc')
# If we can LTO, do it before dce, since it opens up dce opportunities