diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2017-09-28 14:35:15 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2017-10-03 14:35:18 -0700 |
commit | f4c0baf31767c43555b8b1d2937797043bd973e4 (patch) | |
tree | 7a797e3a76069075934c96fcff231230ab78e348 /cc/pgo.go | |
parent | 27991b76524c8465630b8b3e7e208aec3316f59b (diff) | |
download | build_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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |