add -nostdlibinc for arm64_linux_host

The flag is needed to prevent the compiler from looking into the host
include paths like /usr/include.

Bug: 172869346
Test: inspect the include path by temporarily adding `-v`.
Change-Id: I73a16155a784916a1bd0babcb75d5f9079e13423
This commit is contained in:
Jiyong Park 2020-11-10 11:55:42 +09:00
parent 25b0780f37
commit b304e805d9

View file

@ -29,6 +29,10 @@ var (
// which stands for "Android device target". Keeping PIC on is required because
// many modules we have (e.g. Bionic) assume PIC.
"-fpic",
// This is normally in ClangExtraTargetCflags, but that's for device and we need
// the same for host
"-nostdlibinc",
))
linuxCrossLdflags = ClangFilterUnknownCflags([]string{