aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/emmaken.py3
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)