diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-27 22:36:24 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-03-27 22:36:24 +0700 |
commit | 640c813789b81b30c99220a08c1ca36b8f288f7c (patch) | |
tree | 2220a05f6061cf1e39b19d02f08806a28c655b4f | |
parent | e3d12277cdbb3c47ddeacf1fa005f2964debefbb (diff) |
-nostdinc++ is needed to not pick up system C++ headers.
The comment here isn't quite accurate as at least current clang
requires that -nostdinc++ be passed for the correct behavior.
This was reported by Marcos Scriven.
-rw-r--r-- | tools/shared.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index c4efc974..d79811bd 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -385,8 +385,7 @@ 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) - # Note that -nostdinc++ is not needed, since -nostdinc implies that! - EMSDK_OPTS = ['-nostdinc', '-Xclang', '-nobuiltininc', '-Xclang', '-nostdsysteminc', + EMSDK_OPTS = ['-nostdinc', '-Xclang', '-nostdinc++', '-Xclang', '-nobuiltininc', '-Xclang', '-nostdsysteminc', '-Xclang', '-isystem' + path_from_root('system', 'local', 'include'), '-Xclang', '-isystem' + path_from_root('system', 'include', 'libcxx'), '-Xclang', '-isystem' + path_from_root('system', 'include'), |