diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-06-27 18:23:48 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-06-27 18:23:48 -0400 |
commit | 74a7e8e3e03d0c7efe987b1d667c951482655100 (patch) | |
tree | 91b53fe9706db2b81e130ecadad6f2385afd764d /tools/shared.py | |
parent | 2aff319609a3c54ac18c3ba27259420b5931aa0f (diff) |
Add a comment about nostdinc++ and remove the -Xclang version too
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index e6c0163c..6d73588a 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -198,7 +198,8 @@ 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', '-Xclang', '-nobuiltininc', '-Xclang', '-nostdinc++', '-Xclang', '-nostdsysteminc', + # Note that -nostdinc++ is not needed, since -nostdinc implies that! + EMSDK_OPTS = ['-nostdinc', '-Xclang', '-nobuiltininc', '-Xclang', '-nostdsysteminc', '-Xclang', '-isystem' + path_from_root('system', 'include'), '-Xclang', '-isystem' + path_from_root('system', 'include', 'emscripten'), '-Xclang', '-isystem' + path_from_root('system', 'include', 'bsd'), # posix stuff |