Merge "Enable benchmarks on darwin" am: 61d5f9a7c7

am: eac11a3c07

Change-Id: I8e7a15d2cab0687993c67d5fbf84b8d430fe362f
This commit is contained in:
Colin Cross
2018-11-14 17:19:50 -08:00
committed by android-build-merger

View File

@@ -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)