aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-21 15:54:20 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-21 15:54:20 -0800
commite974325393b583d561125e52111dba5d97db4a77 (patch)
tree20e8ed4c93008a12e68d2810f093c42909502144 /emcc
parenteccb671c198a274e4e247afd2e962433e73967b8 (diff)
fix for o1.test_cases
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: