aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-18 11:47:41 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-18 11:47:41 -0700
commitd4cfd7a6582ddef1a4e5cfe85275c0f182f067a1 (patch)
treed6bfa4d8db9e01d1750f8b4ca00339b331c2ad4e /emcc
parentbfb5eda13f33754485a0d88ff64c85e8e4fd4597 (diff)
support emcc -v with no further arguments
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 3 insertions, 0 deletions
diff --git a/emcc b/emcc
index 0ed8505f..635d6132 100755
--- a/emcc
+++ b/emcc
@@ -297,6 +297,9 @@ the source of emcc (search for 'os.environ').
''' % (this, this, this)
exit(0)
+elif len(sys.argv) == 2 and sys.argv[1] == '-v': # -v with no inputs
+ print 'emcc (Emscripten GCC-like replacement) 2.0'
+ exit(subprocess.call([shared.CLANG, '-v']))
# If this is a configure-type thing, do not compile to JavaScript, instead use clang
# to compile to a native binary (using our headers, so things make sense later)