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
This commit is contained in:
Pirama Arumuga Nainar
2017-09-28 14:35:15 -07:00
parent 27991b7652
commit f4c0baf317

View File

@@ -24,7 +24,7 @@ import (
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"