aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/emcc b/emcc
index 57e73813..8b7e82a6 100755
--- a/emcc
+++ b/emcc
@@ -83,6 +83,7 @@ LEAVE_INPUTS_RAW = os.environ.get('EMCC_LEAVE_INPUTS_RAW') # Do not compile .ll
# Not recommended, this is mainly for the test runner, or if you have some other
# specific need.
# One major limitation with this mode is that dlmalloc will not be added in.
+ # LLVM optimizations will also not be done.
if DEBUG: print >> sys.stderr, 'emcc: ', ' '.join(sys.argv)
@@ -371,7 +372,7 @@ try:
shared.Building.llvm_as(input_file, in_temp(unsuffixed_basename(input_file) + '.o'))
# Optimize, if asked to
- if llvm_opt_level > 0:
+ if llvm_opt_level > 0 and not LEAVE_INPUTS_RAW:
if DEBUG: print >> sys.stderr, 'emcc: LLVM opts'
for input_file in input_files:
try: