Merge "Discard IllegalFlags when testing a new compiler" into main

This commit is contained in:
Aditya Kumar 2023-10-29 00:50:33 +00:00 committed by Gerrit Code Review
commit e19a173a48

View file

@ -353,7 +353,7 @@ var (
llvmNextExtraCommonGlobalCflags = []string{
// Do not report warnings when testing with the top of trunk LLVM.
"-Wno-error",
"-Wno-everything",
}
// Flags that must not appear in any command line.
@ -469,6 +469,7 @@ func init() {
flags := noOverrideGlobalCflags
if ctx.Config().IsEnvTrue("LLVM_NEXT") {
flags = append(noOverrideGlobalCflags, llvmNextExtraCommonGlobalCflags...)
IllegalFlags = []string{} // Don't fail build while testing a new compiler.
}
return strings.Join(flags, " ")
})