diff options
author | 2020-09-28 23:56:02 +0000 | |
---|---|---|
committer | 2020-09-28 23:56:02 +0000 | |
commit | 15bad7a9cf6809acdc1c0d6d9756c306d54dd2a3 (patch) | |
tree | b339d2b74ad5688728114804aba22baf5a511d21 /cc | |
parent | d5bff956f9ceed33e68e6243cd42a58601cf2597 (diff) | |
parent | bc220ca8038cd86db8955261c459b3ba3460a682 (diff) |
Merge "Forbid -fwhole_program_vtables"
Diffstat (limited to 'cc')
-rw-r--r-- | cc/check.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/check.go b/cc/check.go index 46328e915..0058b8c06 100644 --- a/cc/check.go +++ b/cc/check.go @@ -38,6 +38,8 @@ func CheckBadCompilerFlags(ctx BaseModuleContext, prop string, flags []string) { ctx.PropertyErrorf(prop, "Illegal flag `%s`", flag) } else if flag == "--coverage" { 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 == "-Weverything" { if !ctx.Config().IsEnvTrue("ANDROID_TEMPORARILY_ALLOW_WEVERYTHING") { ctx.PropertyErrorf(prop, "-Weverything is not allowed in Android.bp files. "+ |