aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-26 11:41:50 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-26 11:41:50 -0700
commitce09542f7240014bff487d91921d1393b163a617 (patch)
tree83053c7e435e3e240dba1fbcf5ce64eb504d6026
parent97af2a4d3287d6fb2bde716459ab63e4a7934427 (diff)
-v in emcc
-rwxr-xr-xemcc8
1 files changed, 8 insertions, 0 deletions
diff --git a/emcc b/emcc
index 2874741a..c2636438 100755
--- a/emcc
+++ b/emcc
@@ -272,6 +272,10 @@ Options that are modified or new in %s include:
--js-library <lib> A JavaScript library to use in addition to
those in Emscripten's src/library_*
+ -v Turns on verbose output. This will pass
+ -v to Clang, and also enable EMCC_DEBUG
+ to details emcc's operations
+
The target file, if specified (-o <target>), defines what will
be generated:
@@ -513,6 +517,10 @@ try:
elif newargs[i] == '--ignore-dynamic-linking':
ignore_dynamic_linking = True
newargs[i] = ''
+ elif newargs[i] == '-v':
+ shared.COMPILER_OPTS += ['-v']
+ DEBUG = 1
+ newargs[i] = ''
elif newargs[i].startswith('--shell-file'):
check_bad_eq(newargs[i])
shell_path = newargs[i+1]