diff options
author | Josh Matthews <josh@joshmatthews.net> | 2018-09-21 14:16:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 14:16:53 -0400 |
commit | fcec1af22d2d51591aa4b872dd316939366b3c30 (patch) | |
tree | 92139c6ed950b079aed55b5fdc8dd2944097caeb /python/servo/build_commands.py | |
parent | 2671a1c064bf33d68fa96ff7f6f34123434fa052 (diff) | |
download | servo-fcec1af22d2d51591aa4b872dd316939366b3c30.tar.gz servo-fcec1af22d2d51591aa4b872dd316939366b3c30.zip |
Add clang system header include path when building android.
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 8182f42dc9e..253163daefc 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -343,6 +343,7 @@ class MachCommands(CommandBase): support_include = path.join(env['ANDROID_NDK'], "sources", "android", "support", "include") cxx_include = path.join(env['ANDROID_NDK'], "sources", "cxx-stl", "llvm-libc++", "libcxx", "include") + clang_include = path.join(llvm_toolchain, "lib64", "clang", "3.8", "include") sysroot_include = path.join(env['ANDROID_SYSROOT'], "usr", "include") env['HOST_CC'] = host_cc env['HOST_CXX'] = host_cxx @@ -381,6 +382,7 @@ class MachCommands(CommandBase): "--gcc-toolchain=" + gcc_toolchain, "-I" + support_include, "-I" + cxx_include, + "-I" + clang_include, "-isystem", sysroot_include, "-L" + gcc_libs, "-D__STDC_CONSTANT_MACROS", |