aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 3cee4b4b..360f80cc 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -41,7 +41,7 @@ COMPILER_OPTS = COMPILER_OPTS + ['-m32', '-U__i386__', '-U__x86_64__', '-U__i386
USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK')
if USE_EMSDK:
- COMPILER_OPTS += [ '-nostdinc',
+ EMSDK_OPTS = [ '-nostdinc',
'-I' + path_from_root('system', 'include'),
'-I' + path_from_root('system', 'include', 'bsd'), # posix stuff
'-I' + path_from_root('system', 'include', 'libc'),
@@ -52,6 +52,7 @@ if USE_EMSDK:
] + [
'-U__APPLE__'
]
+ COMPILER_OPTS += EMSDK_OPTS
# Engine tweaks