diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-06-12 14:27:36 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-06-12 14:27:36 -0700 |
commit | bc1a69c5ec2c73145543ade2eee574ce87593013 (patch) | |
tree | 9b10ff182653b76cf534e78f2733ad1a7b2d1452 | |
parent | c24c10ea77e612937f1d3e36b5909ada62587b76 (diff) |
minor emmaken fixes
-rwxr-xr-x | tools/emmaken.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/emmaken.py b/tools/emmaken.py index 651aff8b..0d33c525 100755 --- a/tools/emmaken.py +++ b/tools/emmaken.py @@ -21,7 +21,8 @@ Example uses: where PATH is the path to this file. - * With CMake, do something like + * With CMake, the same command will work (with cmake instead of ./configure). You may also be + able to do the following in your CMakeLists.txt: SET(CMAKE_C_COMPILER "PATH/emmaken.py") SET(CMAKE_CXX_COMPILER "PATH/emmakenxx.py") @@ -98,7 +99,7 @@ try: # ranlib os.execvp(LLVM_DIS, ['-show-annotations', sys.argv[1]]) sys.exit(0) - if sys.argv[1] in ['x', 't']: + if len(sys.argv) == 1 or sys.argv[1] in ['x', 't']: # noop ar sys.exit(0) @@ -168,7 +169,7 @@ try: print >> sys.stderr, "Running:", call, ' '.join(newargs) os.execvp(call, [call] + newargs) -except: - print 'Error in emmaken.py. Is the config file ~/.emscripten set up properly?' +except Exception, e: + print 'Error in emmaken.py. Is the config file ~/.emscripten set up properly?', e raise |