diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-04 14:54:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-04 14:54:49 -0800 |
commit | 92439491013781d4d41be41666d671a17cbbe7c2 (patch) | |
tree | 2402a5bfbcba193f6152c884c3d4a0ac1b4e1ce5 | |
parent | abc912daee8f1ae133c5ada65c39b719ca4409f0 (diff) |
properly remove all local system include dirs
-rw-r--r-- | tools/shared.py | 22 |
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 = [] |