diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-25 09:55:58 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-25 09:55:58 -0800 |
commit | 72133a594261ec3a4c4231ded730a75029d9fddf (patch) | |
tree | 7be37361f2456662fcf5336707f7644ab0d97df4 /emcc | |
parent | e3c6c8170a423d69d689a60570f3167d0162cef3 (diff) |
autodebugger support in emcc
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -530,7 +530,7 @@ try: if DEBUG: print >> sys.stderr, 'emcc: LLVM dead globals elimination' shared.Building.llvm_opt(in_temp(target_basename + '.bc'), ['-internalize', '-globaldce']) - # Emscripten + # Prepare .ll for Emscripten try: if shared.Settings.RELOOP: print >> sys.stderr, 'emcc: warning: The relooper optimization can be very slow.' @@ -555,6 +555,12 @@ try: final = input_files[0] if DEBUG: save_intermediate('ll', 'll') + if os.environ.get('EMCC_AUTODEBUG'): + Popen(['python', shared.AUTODEBUGGER, final, final + '.ad.ll']).communicate()[0] + final += '.ad.ll' + if DEBUG: save_intermediate('autodebug', 'll') + + # Emscripten if DEBUG: print >> sys.stderr, 'emcc: LLVM => JS' final = shared.Building.emscripten(final, append_ext=False) if DEBUG: save_intermediate('original') |