diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-04-26 17:07:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-04-26 17:07:29 -0700 |
commit | 6345f59ce83d57b08866083dde88f1157dfb8921 (patch) | |
tree | 3a4fc9bfe06e502aacaaa299af9dfd1847270bea /tools/emmaken.py | |
parent | 3ef5028d5addc7df09062bfa6a732e90e55d5b54 (diff) |
emmaken support for cmake c++ builds
Diffstat (limited to 'tools/emmaken.py')
-rwxr-xr-x | tools/emmaken.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/emmaken.py b/tools/emmaken.py index 170ed1ef..1b3b6643 100755 --- a/tools/emmaken.py +++ b/tools/emmaken.py @@ -51,7 +51,8 @@ exec(open(path_from_root('tools', 'shared.py'), 'r').read()) # If this is a CMake config, just do that CMAKE_CONFIG = 'CMakeFiles/cmTryCompileExec.dir' in ' '.join(sys.argv)# or 'CMakeCCompilerId' in ' '.join(sys.argv) if CMAKE_CONFIG: - exit(os.execvp('gcc', ['gcc'] + sys.argv[1:])) + compiler = 'g++' if 'CXXCompiler' in ' '.join(sys.argv) else 'gcc' + exit(os.execvp(compiler, [compiler] + sys.argv[1:])) try: print 'emmaken.py: ', ' '.join(sys.argv) |