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:
parent
25b0780f37
commit
b304e805d9
1 changed files with 4 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue