diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-24 20:49:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-24 20:49:27 -0800 |
commit | cbf61df3d0542f5ee91e93835cc8e9cc87446035 (patch) | |
tree | 68d4872dcc8563e8ee948525f4cab1823adc7c61 /tools | |
parent | 86eb2f8e1ece2370a74e0d6984b048d6beedb150 (diff) |
move llvm opt debug messages
Diffstat (limited to 'tools')
-rw-r--r-- | tools/shared.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 8c0583f6..780e0057 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -819,6 +819,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e def llvm_opt(filename, opts): if type(opts) is int: opts = Building.pick_llvm_opts(opts) + if DEBUG: print >> sys.stderr, 'emcc: LLVM opts:', opts output = Popen([LLVM_OPT, filename] + opts + ['-o=' + filename + '.opt.bc'], stdout=PIPE).communicate()[0] assert os.path.exists(filename + '.opt.bc'), 'Failed to run llvm optimizations: ' + output shutil.move(filename + '.opt.bc', filename) |