diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-21 15:54:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-21 15:54:20 -0800 |
commit | e974325393b583d561125e52111dba5d97db4a77 (patch) | |
tree | 20e8ed4c93008a12e68d2810f093c42909502144 /emcc | |
parent | eccb671c198a274e4e247afd2e962433e73967b8 (diff) |
fix for o1.test_cases
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |