aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/emcc b/emcc
index 9c3514f3..7eb9effa 100755
--- a/emcc
+++ b/emcc
@@ -1595,7 +1595,7 @@ try:
shell = open(shell_path).read()
html = open(target, 'w')
if not Compression.on:
- if keep_js_debug: generate_source_maps(final, target)
+ if keep_llvm_debug and keep_js_debug: generate_source_maps(final, target)
html.write(shell.replace('{{{ SCRIPT_CODE }}}', open(final).read()))
else:
# Compress the main code
@@ -1666,7 +1666,7 @@ try:
from tools.split import split_javascript_file
split_javascript_file(final, unsuffixed(target), split_js_file)
else:
- if keep_js_debug: generate_source_maps(final, target)
+ if keep_llvm_debug and keep_js_debug: generate_source_maps(final, target)
# copy final JS to output
shutil.move(final, target)