Add a check for -fno-integrated-as
Bug: 188684773 Test: presubmit This flag can cause the build to invoke the `as` from the build host, which can cause problems with cross-compilation. Change-Id: I0a2ec5a10c97534bc9cb03e76b95b8e54d2c75ba
This commit is contained in:
parent
c540beef74
commit
0cfbefbf10
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ func CheckBadCompilerFlags(ctx BaseModuleContext, prop string, flags []string) {
|
|||
ctx.PropertyErrorf(prop, "Bad flag: `%s`, use native_coverage instead", flag)
|
||||
} else if flag == "-fwhole-program-vtables" {
|
||||
ctx.PropertyErrorf(prop, "Bad flag: `%s`, use whole_program_vtables instead", flag)
|
||||
} else if flag == "-fno-integrated-as" {
|
||||
ctx.PropertyErrorf("Bad flag: `%s` is disallowed as it may invoke the `as` from the build host", flag)
|
||||
} else if flag == "-Weverything" {
|
||||
if !ctx.Config().IsEnvTrue("ANDROID_TEMPORARILY_ALLOW_WEVERYTHING") {
|
||||
ctx.PropertyErrorf(prop, "-Weverything is not allowed in Android.bp files. "+
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue