Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61d5f9a7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Enable benchmarks on darwin"

parents 5857f7c1 5f45e81f
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -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)