aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-18 12:52:41 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-18 12:52:41 -0800
commit767553991644503fcc845a32449dc3ee147c7a1e (patch)
tree8e3f7dc625742101c4f7139787a00b837d35be3a /emcc
parenta324efc5ed5f638ea4cb6f3d26def70301d368ed (diff)
remove LLVM debug info in -O1+, since the optimizer removes it anyhow
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 63ce1d88..1a4dc470 100755
--- a/emcc
+++ b/emcc
@@ -1104,7 +1104,7 @@ try:
# Optimize, if asked to
if not LEAVE_INPUTS_RAW:
- link_opts = [] if keep_debug else ['-strip-debug']
+ link_opts = [] if keep_debug and opt_level == 0 else ['-strip-debug'] # remove LLVM debug info in -O1+, since the optimizer removes it anyhow
if llvm_opts > 0:
shared.Building.llvm_opt(in_temp(target_basename + '.bc'), llvm_opts)
if DEBUG: save_intermediate('opt', 'bc')