diff options
author | Evgeniy Stepanov <eugenis@google.com> | 2012-03-26 14:15:47 +0400 |
---|---|---|
committer | Evgeniy Stepanov <eugenis@google.com> | 2012-03-26 14:22:07 +0400 |
commit | 55daae9688de0a064c9b37723ce7451c2dc0d6cb (patch) | |
tree | dd3a6517fa60027503db00c5768766f5ea1e2954 /core/llvm_config.mk | |
parent | 98f7c376015aaad46db051ca388812154f985487 (diff) | |
download | build-55daae9688de0a064c9b37723ce7451c2dc0d6cb.zip build-55daae9688de0a064c9b37723ce7451c2dc0d6cb.tar.gz build-55daae9688de0a064c9b37723ce7451c2dc0d6cb.tar.bz2 |
Skip host system directories in Clang include path.
This change removes /usr/include and /usr/local/include from Clang header
search path.
Change-Id: I84450f4f4aef829c5aef9221bf300e69819bac48
Diffstat (limited to 'core/llvm_config.mk')
-rw-r--r-- | core/llvm_config.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/llvm_config.mk b/core/llvm_config.mk index ec6720a..ffa933d 100644 --- a/core/llvm_config.mk +++ b/core/llvm_config.mk @@ -22,6 +22,7 @@ CLANG_CONFIG_UNKNOWN_CFLAGS := \ ifeq ($(TARGET_ARCH),arm) CLANG_CONFIG_EXTRA_CFLAGS += \ -target arm-linux-androideabi \ + -nostdlibinc \ -B$(TARGET_TOOLCHAIN_ROOT)/arm-linux-androideabi/bin \ -mllvm -arm-enable-ehabi CLANG_CONFIG_EXTRA_LDFLAGS += \ @@ -37,6 +38,7 @@ endif ifeq ($(TARGET_ARCH),x86) CLANG_CONFIG_EXTRA_CFLAGS += \ -target i686-android-linux \ + -nostdlibinc \ -B$(TARGET_TOOLCHAIN_ROOT)/i686-android-linux/bin CLANG_CONFIG_EXTRA_LDFLAGS += \ -target i686-android-linux \ |