Merge "Add option to allow unknown warning options"
This commit is contained in:
commit
485127c76e
1 changed files with 4 additions and 0 deletions
|
@ -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, " ")
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue