aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-26 10:53:48 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-26 10:56:22 -0800
commit28cd0d4f2be20241b3e3b090156775c29b695f9a (patch)
tree0254e9649a9c92b79cab5b9b08e35d2ec284e32c
parent6d11f414a7cce4aacf7da0cd8e412c92166ea162 (diff)
improve -v output, and add some docs
-rwxr-xr-xemcc15
1 files changed, 13 insertions, 2 deletions
diff --git a/emcc b/emcc
index 71e55f44..a6bf9c6a 100755
--- a/emcc
+++ b/emcc
@@ -423,7 +423,17 @@ Options that are modified or new in %s include:
-v Turns on verbose output. This will pass
-v to Clang, and also enable EMCC_DEBUG
- to details emcc's operations
+ to details emcc's operations.
+
+ It will also run emscripten's internal sanity
+ checks, checking that things like the LLVM directory
+ path looks correct, etc. This works with or
+ without other arguments, so it can be useful to run
+
+ emcc -v
+
+ if you see odd errors, as it can help diagnose
+ things.
--clear-cache Manually clears the cache of compiled
emscripten system libraries (libc++,
@@ -528,8 +538,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR P
elif len(sys.argv) == 2 and sys.argv[1] == '-v': # -v with no inputs
print 'emcc (Emscripten GCC-like replacement + linker emulating GNU ld ) %s' % shared.EMSCRIPTEN_VERSION
+ code = subprocess.call([shared.CLANG, '-v'])
shared.check_sanity(force=True)
- exit(subprocess.call([shared.CLANG, '-v']))
+ exit(code)
def is_minus_s_for_emcc(newargs, i):
assert newargs[i] == '-s'