Propagate sanitize.never flag in SDK snapshots.

This is necessary to not get dependencies on libclang_rt sanitizer libs
for the CRT objects which lead to cyclic dependencies in sanitizer
builds.

Test: `lunch aosp_blueline_hwasan-userdebug && m nothing`
  in a tree that has the prebuilts created and unzipped from
  `build/soong/scripts/build-aml-prebuilts.sh runtime-module-{sdk,host-exports}`
Bug: 151303681
Change-Id: I3f848a084280bdc3ade4b74df03e981d8cc61222
This commit is contained in:
Martin Stjernholm
2020-08-21 18:43:51 +01:00
parent ec7a91f9fa
commit fbb486fc7a
2 changed files with 21 additions and 0 deletions

View File

@@ -340,6 +340,9 @@ func TestSnapshotWithObject(t *testing.T) {
cc_object {
name: "crtobj",
stl: "none",
sanitize: {
never: true,
},
}
`)
@@ -352,6 +355,9 @@ cc_prebuilt_object {
sdk_member_name: "crtobj",
stl: "none",
compile_multilib: "both",
sanitize: {
never: true,
},
arch: {
arm64: {
srcs: ["arm64/lib/crtobj.o"],
@@ -367,6 +373,9 @@ cc_prebuilt_object {
prefer: false,
stl: "none",
compile_multilib: "both",
sanitize: {
never: true,
},
arch: {
arm64: {
srcs: ["arm64/lib/crtobj.o"],