aboutsummaryrefslogtreecommitdiffstats
path: root/cc/androidmk.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-05-23 15:10:37 -0700
committerDan Willemsen <dwillemsen@google.com>2017-05-23 15:55:12 -0700
commit58a5c8b2061b1e1fb68c5d5e9120190673a516b3 (patch)
treebc30ad03006ab586493967e52b4d3ea24a8a01e9 /cc/androidmk.go
parentd7cbea9990f0b6a4311510dbde75a96306759891 (diff)
downloadbuild_soong-58a5c8b2061b1e1fb68c5d5e9120190673a516b3.tar.gz
build_soong-58a5c8b2061b1e1fb68c5d5e9120190673a516b3.tar.bz2
build_soong-58a5c8b2061b1e1fb68c5d5e9120190673a516b3.zip
Export cc_benchmark as NATIVE_TESTS to Make
This fixes some warnings on internal master where the compatibility suite logic didn't look at EXECUTABLES (it was checking for LOCAL_MODULE_CLASS == NATIVE_BENCHMARK, which doesn't exist). Test: Compare out/soong/Android-aosp_arm64.mk Test: Compare out/build-aosp_arm64.ninja Change-Id: Ibe3c40e81e26f4c4cb9fd5bea1619b94181764fb
Diffstat (limited to 'cc/androidmk.go')
-rw-r--r--cc/androidmk.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/androidmk.go b/cc/androidmk.go
index cba87822..3ce01d24 100644
--- a/cc/androidmk.go
+++ b/cc/androidmk.go
@@ -203,6 +203,7 @@ func (binary *binaryDecorator) AndroidMk(ctx AndroidMkContext, ret *android.Andr
func (benchmark *benchmarkDecorator) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkData) {
ctx.subAndroidMk(ret, benchmark.binaryDecorator)
+ ret.Class = "NATIVE_TESTS"
ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) error {
if len(benchmark.Properties.Test_suites) > 0 {
fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=",