summaryrefslogtreecommitdiff
path: root/cc
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2021-06-16 14:31:19 -0700
committerPirama Arumuga Nainar <pirama@google.com>2021-06-16 22:01:41 -0700
commit19a5aae35e36cb45599c3203a233f6a757456a94 (patch)
treeb1242991739d345db2084a7edbb08d0a5c3167a8 /cc
parent12066c6542f78acc9d736bef79b6f95c60153cac (diff)
[cc/pgo] Mark pgo.sampling property as an arch-variant
Bug: http://b/189438896 This allows disabling sampling PGO for some arches. Test: Build this topic. Change-Id: Ib6ddca6685c2e53092afd440ad95ec42d3a9538b
Diffstat (limited to 'cc')
-rw-r--r--cc/pgo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/pgo.go b/cc/pgo.go
index 95c9c2e50..e78549e7b 100644
--- a/cc/pgo.go
+++ b/cc/pgo.go
@@ -56,7 +56,7 @@ func recordMissingProfileFile(ctx BaseModuleContext, missing string) {
type PgoProperties struct {
Pgo struct {
Instrumentation *bool
- Sampling *bool
+ Sampling *bool `android:"arch_variant"`
Profile_file *string `android:"arch_variant"`
Benchmarks []string
Enable_profile_use *bool `android:"arch_variant"`