aboutsummaryrefslogtreecommitdiffstats
path: root/cc/pgo.go
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2017-09-28 14:35:15 -0700
committerPirama Arumuga Nainar <pirama@google.com>2017-10-03 14:35:18 -0700
commitf4c0baf31767c43555b8b1d2937797043bd973e4 (patch)
tree7a797e3a76069075934c96fcff231230ab78e348 /cc/pgo.go
parent27991b76524c8465630b8b3e7e208aec3316f59b (diff)
downloadbuild_soong-f4c0baf31767c43555b8b1d2937797043bd973e4.tar.gz
build_soong-f4c0baf31767c43555b8b1d2937797043bd973e4.tar.bz2
build_soong-f4c0baf31767c43555b8b1d2937797043bd973e4.zip
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
Diffstat (limited to 'cc/pgo.go')
-rw-r--r--cc/pgo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/pgo.go b/cc/pgo.go
index ccddece9..f9c8bbf9 100644
--- a/cc/pgo.go
+++ b/cc/pgo.go
@@ -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"