Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55daae96 authored by Evgeniy Stepanov's avatar Evgeniy Stepanov
Browse files

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
parent 98f7c376
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 \