Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e19a173a authored by Aditya Kumar's avatar Aditya Kumar Committed by Gerrit Code Review
Browse files

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

parents 8e586ab8 e7b60671
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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, " ")
	})