diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-21 10:10:55 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-21 10:10:55 -0800 |
commit | 8e019e31feb149aaa5ecb9c054e6710daf62bfce (patch) | |
tree | b5c9837051885c1cceb6c855b57cba00a63a582a /emscripten.py | |
parent | f0f9b2c0b024dbe3633b09f5f9546a7bf57da990 (diff) |
move some output behind DEBUG
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/emscripten.py b/emscripten.py index 9dd4c4d1..9bb6582e 100755 --- a/emscripten.py +++ b/emscripten.py @@ -766,7 +766,7 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, # Split up output backend_output = open(temp4).read() - print >> sys.stderr, backend_output + if DEBUG: print >> sys.stderr, backend_output start_funcs_marker = '// EMSCRIPTEN_START_FUNCTIONS' end_funcs_marker = '// EMSCRIPTEN_END_FUNCTIONS' @@ -780,9 +780,9 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, metadata_raw = backend_output[metadata_split+len(metadata_split_marker):] metadata = json.loads(metadata_raw) mem_init = backend_output[end_funcs+len(end_funcs_marker):metadata_split] - print >> sys.stderr, "FUNCS", funcs - print >> sys.stderr, "META", metadata - print >> sys.stderr, "meminit", mem_init + if DEBUG: print >> sys.stderr, "FUNCS", funcs + if DEBUG: print >> sys.stderr, "META", metadata + if DEBUG: print >> sys.stderr, "meminit", mem_init if DEBUG: logging.debug('emscript: js compiler glue') |