Error on the usage of -target flag
Bug: http://b/323415017 Change-Id: I31897ff0101965088280ad9adc7a23a7c190536a
This commit is contained in:
parent
af9fc549ca
commit
f6fbaac34c
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ func CheckBadCompilerFlags(ctx BaseModuleContext, prop string, flags []string) {
|
|||
ctx.PropertyErrorf(prop, "-Weverything is not allowed in Android.bp files. "+
|
||||
"Build with `m ANDROID_TEMPORARILY_ALLOW_WEVERYTHING=true` to experiment locally with -Weverything.")
|
||||
}
|
||||
} else if strings.HasPrefix(flag, "-target") || strings.HasPrefix(flag, "--target") {
|
||||
ctx.PropertyErrorf(prop, "Bad flag: `%s`, use the correct target soong rule.", flag)
|
||||
} else if strings.Contains(flag, " ") {
|
||||
args := strings.Split(flag, " ")
|
||||
if args[0] == "-include" {
|
||||
|
|
Loading…
Reference in a new issue