aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-06 10:07:37 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-06 10:07:37 -0800
commit4d3410d10ee4007ee9f1d15e9828999c3d4ad9d9 (patch)
tree4f9e84e94b7bfc8b329efac086e5e1b402946d38 /tools
parent273f7a00cf2a1f25a58a43ace174b815e17c5c45 (diff)
parenta58194543c23f55c1206fb809dbf6447d01da163 (diff)
Merge pull request #920 from waywardmonkeys/fix-include-order
Search libcxx includes before others (libc).
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 1d1bebdd..6434fb06 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -388,11 +388,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'),