Export cc_test as Make class NATIVE_TESTS
So that make can tell the difference.
Bug: 32177952
Test: Diff build-aosp_arm64.ninja before/after
Change-Id: Icd98ea5f5b4127bf84197c6b651a72708eec57f1
diff --git a/cc/androidmk.go b/cc/androidmk.go
index 380babc..c0be111 100644
--- a/cc/androidmk.go
+++ b/cc/androidmk.go
@@ -155,6 +155,7 @@
func (test *testBinary) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkData) {
ctx.subAndroidMk(ret, test.binaryDecorator)
+ ret.Class = "NATIVE_TESTS"
if Bool(test.Properties.Test_per_src) {
ret.SubName = "_" + test.binaryDecorator.Properties.Stem
}