From 5f45e81f84caa07f0d0ae2baa4181a2a88303279 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 13 Nov 2018 15:28:07 -0800 Subject: [PATCH] Enable benchmarks on darwin libgoogle-benchmark works fine on darwin, enable it. Bug: 77585931 Test: m checkbuild Change-Id: I8d1cfe4ada634675c8c4c16f42681069d0311771 --- cc/test.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cc/test.go b/cc/test.go index 96049db8d..f7180b561 100644 --- a/cc/test.go +++ b/cc/test.go @@ -16,7 +16,6 @@ package cc import ( "path/filepath" - "runtime" "strings" "android/soong/android" @@ -377,16 +376,6 @@ func (benchmark *benchmarkDecorator) install(ctx ModuleContext, file android.Pat } func NewBenchmark(hod android.HostOrDeviceSupported) *Module { - // Benchmarks aren't supported on Darwin - if runtime.GOOS == "darwin" { - switch hod { - case android.HostAndDeviceSupported: - hod = android.DeviceSupported - case android.HostSupported: - hod = android.NeitherHostNorDeviceSupported - } - } - module, binary := NewBinary(hod) module.multilib = android.MultilibBoth binary.baseInstaller = NewBaseInstaller("benchmarktest", "benchmarktest64", InstallInData)