Skip to content

Commit

Permalink
Print more compiler stages (makes -v more useful) (emscripten-core#8350)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 authored and VirtualTim committed May 21, 2019
1 parent e6b1f3e commit 3c178bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2686,7 +2686,8 @@ def do_binaryen(target, asm_target, options, memfile, wasm_binary_target,
cmd += ['--output-source-map-url=' + options.source_map_base + os.path.basename(wasm_binary_target) + '.map']
if DEBUG:
shared.safe_copy(wasm_source_map_target, os.path.join(shared.get_emscripten_temp_dir(), os.path.basename(wasm_source_map_target) + '.pre-byn'))
logger.debug('wasm-opt on BINARYEN_PASSES: ' + ' '.join(cmd))
logger.debug('wasm-opt on BINARYEN_PASSES: %s', shared.Settings.BINARYEN_PASSES)
shared.print_compiler_stage(cmd)
shared.check_call(cmd)
if shared.Settings.BINARYEN_SCRIPTS:
binaryen_scripts = os.path.join(shared.BINARYEN_ROOT, 'scripts')
Expand Down
1 change: 1 addition & 0 deletions emscripten.py
Original file line number Diff line number Diff line change
Expand Up @@ -2214,6 +2214,7 @@ def debug_copy(src, dst):
cmd.append('--separate-data-segments=' + memfile)
if not shared.Settings.SIDE_MODULE:
cmd.append('--initial-stack-pointer=%d' % Memory().stack_base)
shared.print_compiler_stage(cmd)
stdout = shared.check_call(cmd, stdout=subprocess.PIPE).stdout
if write_source_map:
debug_copy(wasm + '.map', 'post_finalize.map')
Expand Down

0 comments on commit 3c178bf

Please sign in to comment.