aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-27 13:18:00 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-03-27 13:25:18 -0700
commit9ce739dbabb00ce0391c3790253fa686edb0a006 (patch)
treecacf8cb2135f2527228f5c44eaaab5817a4678e4
parent422d65dc0603ca7c856e82425adfeee01463d2b0 (diff)
improve debug logging of emcc invocation
-rwxr-xr-xemcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/emcc b/emcc
index 1af9de86..73ce51aa 100755
--- a/emcc
+++ b/emcc
@@ -95,7 +95,8 @@ AUTODEBUG = os.environ.get('EMCC_AUTODEBUG') # If set to 1, we will run the auto
# dlmalloc makes it hard to compare native and js builds
EMCC_CFLAGS = os.environ.get('EMCC_CFLAGS') # Additional compiler flags that we treat as if they were passed to us on the commandline
-logging.debug('invocation: ' + ' '.join(sys.argv) + (' + ' + EMCC_CFLAGS if EMCC_CFLAGS else ''))
+if DEBUG: logging.warning('invocation: ' + ' '.join(sys.argv) + (' + ' + EMCC_CFLAGS if EMCC_CFLAGS else ''))
+
if EMCC_CFLAGS: sys.argv.append(EMCC_CFLAGS)
if DEBUG and LEAVE_INPUTS_RAW: logging.warning('leaving inputs raw')