We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef5028 commit 6345f59Copy full SHA for 6345f59
tools/emmaken.py
@@ -51,7 +51,8 @@ def path_from_root(*pathelems):
51
# If this is a CMake config, just do that
52
CMAKE_CONFIG = 'CMakeFiles/cmTryCompileExec.dir' in ' '.join(sys.argv)# or 'CMakeCCompilerId' in ' '.join(sys.argv)
53
if CMAKE_CONFIG:
54
- exit(os.execvp('gcc', ['gcc'] + sys.argv[1:]))
+ compiler = 'g++' if 'CXXCompiler' in ' '.join(sys.argv) else 'gcc'
55
+ exit(os.execvp(compiler, [compiler] + sys.argv[1:]))
56
57
try:
58
print 'emmaken.py: ', ' '.join(sys.argv)
0 commit comments