aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-03-04 23:14:43 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-03-04 23:14:43 +0700
commita58194543c23f55c1206fb809dbf6447d01da163 (patch)
tree3a0db73a3d21f2876a2e3d708baaf50fc9e56a88
parent02cdea5859956e1bffcdc1f26a188200a529c53a (diff)
Search libcxx includes before others (libc).
This ensures that the overrides like complex.h that libcxx provides are found before the ones provided by libc. Fixes #919.
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index f5f6a17b..ce61b735 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -371,11 +371,11 @@ if USE_EMSDK:
# Note that -nostdinc++ is not needed, since -nostdinc implies that!
EMSDK_OPTS = ['-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'),
'-Xclang', '-isystem' + path_from_root('system', 'include', 'emscripten'),
'-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', 'lib', 'libcxxabi', 'include'),
'-Xclang', '-isystem' + path_from_root('system', 'include', 'gfx'),
'-Xclang', '-isystem' + path_from_root('system', 'include', 'net'),