aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorJez Ng <me@jezng.com>2013-06-06 18:12:39 -0700
committerJez Ng <me@jezng.com>2013-06-19 01:22:01 -0700
commit165befaa29b7226b28caecd2f30bae91dc20f26f (patch)
treefa50042f6eba9fd29e0c27773af7051188f3b4a8 /emcc
parent747f74e1055feaea11222978d46c421ac92602ea (diff)
Add check for keep_llvm_debug + minor touchups.
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)