Merge "Ban --coverage now that we have native coverage" am: 31160bef1e
am: b408965e20
Change-Id: Iecb3e71ee7dda432f3ef26d3af4381159a94afe2
This commit is contained in:
commit
b9eef7a590
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,8 @@ func CheckBadCompilerFlags(ctx BaseModuleContext, prop string, flags []string) {
|
|||
ctx.PropertyErrorf(prop, "Bad flag `%s`, use local_include_dirs or include_dirs instead", flag)
|
||||
} else if inList(flag, config.IllegalFlags) {
|
||||
ctx.PropertyErrorf(prop, "Illegal flag `%s`", flag)
|
||||
} else if flag == "--coverage" {
|
||||
ctx.PropertyErrorf(prop, "Bad flag: `%s`, use native_coverage instead", flag)
|
||||
} else if strings.Contains(flag, " ") {
|
||||
args := strings.Split(flag, " ")
|
||||
if args[0] == "-include" {
|
||||
|
@ -73,6 +75,8 @@ func CheckBadLinkerFlags(ctx BaseModuleContext, prop string, flags []string) {
|
|||
ctx.PropertyErrorf(prop, "Bad flag: `%s` is not allowed", flag)
|
||||
} else if strings.HasPrefix(flag, "-Wl,--version-script") {
|
||||
ctx.PropertyErrorf(prop, "Bad flag: `%s`, use version_script instead", flag)
|
||||
} else if flag == "--coverage" {
|
||||
ctx.PropertyErrorf(prop, "Bad flag: `%s`, use native_coverage instead", flag)
|
||||
} else if strings.Contains(flag, " ") {
|
||||
args := strings.Split(flag, " ")
|
||||
if args[0] == "-z" {
|
||||
|
|
Loading…
Reference in a new issue