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 e98554f commit 6577be0Copy full SHA for 6577be0
emcmake.py
@@ -4,6 +4,7 @@
4
# University of Illinois/NCSA Open Source License. Both these licenses can be
5
# found in the LICENSE file.
6
7
+import os
8
import sys
9
from tools import shared
10
from tools import config
@@ -30,7 +31,7 @@ def has_substr(args, substr):
30
31
return any(substr in s for s in args)
32
33
# Append the Emscripten toolchain file if the user didn't specify one.
- if not has_substr(args, '-DCMAKE_TOOLCHAIN_FILE'):
34
+ if not has_substr(args, '-DCMAKE_TOOLCHAIN_FILE') and 'CMAKE_TOOLCHAIN_FILE' not in os.environ:
35
args.append('-DCMAKE_TOOLCHAIN_FILE=' + utils.path_from_root('cmake/Modules/Platform/Emscripten.cmake'))
36
37
if not has_substr(args, '-DCMAKE_CROSSCOMPILING_EMULATOR'):
0 commit comments