From 66553e26a88a333a92e76c2cb1932865be26a970 Mon Sep 17 00:00:00 2001 From: Ryan Kelly Date: Sun, 7 Sep 2014 17:02:29 +1000 Subject: [PATCH] Respect --llvm-opts when performing --llvm-lto=2 --- emcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emcc b/emcc index f189374e8..54a3f7895 100755 --- a/emcc +++ b/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