Merge "Add option to allow unknown warning options"

This commit is contained in:
Treehugger Robot 2022-07-21 12:23:28 +00:00 committed by Gerrit Code Review
commit 485127c76e

View file

@ -375,6 +375,10 @@ func init() {
flags = append(flags, llvmNextExtraCommonGlobalCflags...)
}
if ctx.Config().IsEnvTrue("ALLOW_UNKNOWN_WARNING_OPTION") {
flags = append(flags, "-Wno-error=unknown-warning-option")
}
return strings.Join(flags, " ")
})