aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-06 11:42:28 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-03-06 11:42:43 -0800
commitb2f504275d57541ae515bf53a0bd2489def1c4b2 (patch)
tree707020dd574b75090a9e4630d89009c475a9195c
parent20d5ffb5925d57a5facacce453d4643e8809929d (diff)
add commented out line to help debugging llvm opt aborts
-rwxr-xr-xemcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/emcc b/emcc
index 3cc294ce..de782071 100755
--- a/emcc
+++ b/emcc
@@ -1378,6 +1378,7 @@ try:
if file_ending.endswith(SOURCE_ENDINGS):
temp_file = temp_files[i]
logging.debug('optimizing %s', input_file)
+ #if DEBUG: shutil.copyfile(temp_file, os.path.join(TEMP_DIR, 'to_opt.bc') # useful when LLVM opt aborts
shared.Building.llvm_opt(temp_file, llvm_opts)
# If we were just asked to generate bitcode, stop there