summaryrefslogtreecommitdiff
path: root/sdk/cc_sdk_test.go
diff options
context:
space:
mode:
authorMartin Stjernholm <mast@google.com>2020-06-30 20:34:00 +0100
committerMartin Stjernholm <mast@google.com>2020-07-07 18:14:26 +0100
commit26ab8e80e49640943fb06e1e62a9c1964b2debf6 (patch)
treef41c87346d31e504e8c4df4cf9f4cf86dd541647 /sdk/cc_sdk_test.go
parentcc77601d10ea7d61785fe15b1046bb079281610a (diff)
Prepend default to allow overriding in the bp file.
Bug: 143948100 Bug: 151303681 Test: m nothing Change-Id: Iefcf4fbe9d2971ce267242185165f0c38f68db30
Diffstat (limited to 'sdk/cc_sdk_test.go')
-rw-r--r--sdk/cc_sdk_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/sdk/cc_sdk_test.go b/sdk/cc_sdk_test.go
index 7db56c4c7..c59cd3095 100644
--- a/sdk/cc_sdk_test.go
+++ b/sdk/cc_sdk_test.go
@@ -69,6 +69,28 @@ func TestSdkIsCompileMultilibBoth(t *testing.T) {
ensureListContains(t, inputs, arm64Output.String())
}
+func TestSdkCompileMultilibOverride(t *testing.T) {
+ result := testSdkWithCc(t, `
+ sdk {
+ name: "mysdk",
+ native_shared_libs: ["sdkmember"],
+ compile_multilib: "64",
+ }
+
+ cc_library_shared {
+ name: "sdkmember",
+ srcs: ["Test.cpp"],
+ stl: "none",
+ compile_multilib: "64",
+ }
+ `)
+
+ result.CheckSnapshot("mysdk", "",
+ checkAllCopyRules(`
+.intermediates/sdkmember/android_arm64_armv8-a_shared/sdkmember.so -> arm64/lib/sdkmember.so
+`))
+}
+
func TestBasicSdkWithCc(t *testing.T) {
result := testSdkWithCc(t, `
sdk {