aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-04 14:54:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-04 14:54:49 -0800
commit92439491013781d4d41be41666d671a17cbbe7c2 (patch)
tree2402a5bfbcba193f6152c884c3d4a0ac1b4e1ce5 /tools/shared.py
parentabc912daee8f1ae133c5ada65c39b719ca4409f0 (diff)
properly remove all local system include dirs
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 294f15ee..88f00b5f 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -151,17 +151,17 @@ USE_EMSDK = not os.environ.get('EMMAKEN_NO_SDK')
if USE_EMSDK:
# Disable system C and C++ include directories, and add our own (using -idirafter so they are last, like system dirs, which
# allows projects to override them)
- EMSDK_OPTS = [ '-nostdinc', '-nostdinc++',
- '-idirafter' + path_from_root('system', 'include'),
- '-idirafter' + path_from_root('system', 'include', 'bsd'), # posix stuff
- '-idirafter' + path_from_root('system', 'include', 'libc'),
- '-idirafter' + path_from_root('system', 'include', 'libcxx'),
- '-idirafter' + path_from_root('system', 'include', 'gfx'),
- '-idirafter' + path_from_root('system', 'include', 'net'),
- '-idirafter' + path_from_root('system', 'include', 'SDL'),
-] + [
- '-U__APPLE__'
-]
+ EMSDK_OPTS = ['-nostdinc', '-nostdinc++', '-Xclang', '-nobuiltininc', '-Xclang', '-nostdinc++', '-Xclang', '-nostdsysteminc',
+ '-Xclang', '-isystem' + path_from_root('system', 'include'),
+ '-Xclang', '-isystem' + path_from_root('system', 'include', 'bsd'), # posix stuff
+ '-Xclang', '-isystem' + path_from_root('system', 'include', 'libc'),
+ '-Xclang', '-isystem' + path_from_root('system', 'include', 'libcxx'),
+ '-Xclang', '-isystem' + path_from_root('system', 'include', 'gfx'),
+ '-Xclang', '-isystem' + path_from_root('system', 'include', 'net'),
+ '-Xclang', '-isystem' + path_from_root('system', 'include', 'SDL'),
+ ] + [
+ '-U__APPLE__'
+ ]
COMPILER_OPTS += EMSDK_OPTS
else:
EMSDK_OPTS = []