aboutsummaryrefslogtreecommitdiffstats
path: root/android/arch.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-10-04 15:13:37 -0700
committerDan Willemsen <dwillemsen@google.com>2016-10-04 15:20:16 -0700
commit0b24c74fcbb37628f2e6f9eb54d82586a27d41dc (patch)
tree44516336a303c060bb28257ce49a4fd358ce5566 /android/arch.go
parent89562dc3083ed3fddcccf2e6968c49df0af82759 (diff)
downloadbuild_soong-0b24c74fcbb37628f2e6f9eb54d82586a27d41dc.tar.gz
build_soong-0b24c74fcbb37628f2e6f9eb54d82586a27d41dc.tar.bz2
build_soong-0b24c74fcbb37628f2e6f9eb54d82586a27d41dc.zip
Disable cc_benchmark for Darwin hosts
The google-benchmark library is disabled on Darwin, so we cannot create host benchmarks. Instead of having every user specify this, put the logic in Soong. Then if we decide to support it later, it's an easier switch. Test: build.ninja identical before/after on Linux Test: Ignores failing cc_benchmark_host on Darwin Change-Id: I61f3a571fd160d8e479a512992bc68601f1c9b28
Diffstat (limited to 'android/arch.go')
-rw-r--r--android/arch.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/android/arch.go b/android/arch.go
index 7ccd003b..606de48b 100644
--- a/android/arch.go
+++ b/android/arch.go
@@ -267,12 +267,12 @@ func ArchMutator(mctx BottomUpMutatorContext) {
return
}
- osClasses := module.base().OsClassSupported()
-
- if len(osClasses) == 0 {
+ if !module.base().ArchSpecific() {
return
}
+ osClasses := module.base().OsClassSupported()
+
var moduleTargets []Target
primaryModules := make(map[int]bool)