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:
@@ -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"],
|
||||
|
Reference in New Issue
Block a user