summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-01-07 20:18:48 (GMT)
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-01-02 17:11:00 (GMT)
commit0cb9d3cfed8d10297dd1600bfc6ca2896f613652 (patch)
treec85705a8a023cc06195bc04781dd29b00654208c /core
parentb9771d2b1c6604f5674d9a76e9c95c5cfa0a6daa (diff)
downloadbuild-0cb9d3cfed8d10297dd1600bfc6ca2896f613652.zip
build-0cb9d3cfed8d10297dd1600bfc6ca2896f613652.tar.gz
build-0cb9d3cfed8d10297dd1600bfc6ca2896f613652.tar.bz2
clang: include extra system headers
Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'core')
-rw-r--r--core/clang/HOST_x86_common.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/clang/HOST_x86_common.mk b/core/clang/HOST_x86_common.mk
index 4226dbd..d961aac 100644
--- a/core/clang/HOST_x86_common.mk
+++ b/core/clang/HOST_x86_common.mk
@@ -13,11 +13,13 @@ CLANG_CONFIG_x86_LINUX_HOST_EXTRA_ASFLAGS := \
--gcc-toolchain=toolchain/gcc/host/install
CLANG_CONFIG_x86_LINUX_HOST_EXTRA_CFLAGS := \
- --gcc-toolchain=toolchain/gcc/host/install
+ --gcc-toolchain=toolchain/gcc/host/install \
+ -isystem toolchain/headers/clang
ifneq ($(strip $($(clang_2nd_arch_prefix)HOST_IS_64_BIT)),)
CLANG_CONFIG_x86_LINUX_HOST_EXTRA_CPPFLAGS := \
- --gcc-toolchain=toolchain/gcc/host/install
+ --gcc-toolchain=toolchain/gcc/host/install \
+ -isystem toolchain/headers/clang
CLANG_CONFIG_x86_LINUX_HOST_EXTRA_LDFLAGS := \
--gcc-toolchain=toolchain/gcc/host/install
@@ -25,7 +27,8 @@ CLANG_CONFIG_x86_LINUX_HOST_EXTRA_LDFLAGS := \
else
CLANG_CONFIG_x86_LINUX_HOST_EXTRA_CPPFLAGS := \
- --gcc-toolchain=toolchain/gcc/host/install
+ --gcc-toolchain=toolchain/gcc/host/install \
+ -isystem toolchain/headers/clang
CLANG_CONFIG_x86_LINUX_HOST_EXTRA_LDFLAGS := \
--gcc-toolchain=toolchain/gcc/host/install