aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-13 14:38:15 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-13 14:38:15 -0800
commit811e8840097e7a53a35dd3703970e5eaa19f01fa (patch)
tree8503781aeb1244da26677386f81e93f0b452e4c8 /tools/shared.py
parent70e73f08a4dad5592ecf27d54ba73b4826b54b42 (diff)
use our own headers with the native compiler during configure in emmaken
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