Pass -Wno-backend-plugin when using profiles
Bug: http://b/63768402
Wno-backend-plugin warnings are generated by IR-based PGO when sources
evolve and the profiles become stale. Disable these warnings when
profiles are passed to the compiler.
Test: Build a module with a PGO property when profiles are used.
Change-Id: I462bbf55aafd8770a90c2c23462bf71607ac9108
diff --git a/cc/pgo.go b/cc/pgo.go
index ccddece..f9c8bbf 100644
--- a/cc/pgo.go
+++ b/cc/pgo.go
@@ -24,7 +24,7 @@
var (
// Add flags to ignore warnings that profiles are old or missing for
// some functions
- profileUseOtherFlags = []string{}
+ profileUseOtherFlags = []string{"-Wno-backend-plugin"}
)
const pgoProfileProject = "toolchain/pgo-profiles"