Revert "Block CFI on static libraries"

This reverts commit f9abec0987.

Reason for revert:
https://b.corp.google.com/issues/301444094
https://b.corp.google.com/issues/301443813
https://b.corp.google.com/issues/301437374

Change-Id: I6fd03e4d3c0930005178ad347f53156be8f15efc
This commit is contained in:
Trevor Radcliffe
2023-09-21 17:04:43 +00:00
committed by Gerrit Code Review
parent f9abec0987
commit 85d55c2847
8 changed files with 26 additions and 70 deletions

View File

@@ -1522,7 +1522,7 @@ func TestCcLibrarySharedWithCfiAndCfiAssemblySupport(t *testing.T) {
runCcLibrarySharedTestCase(t, Bp2buildTestCase{
Description: "cc_library_shared has correct features when cfi is enabled with cfi assembly support",
Blueprint: `
cc_library_shared {
cc_library_static {
name: "foo",
sanitize: {
cfi: true,
@@ -1532,7 +1532,7 @@ cc_library_shared {
},
}`,
ExpectedBazelTargets: []string{
MakeBazelTarget("cc_library_shared", "foo", AttrNameToString{
MakeBazelTarget("cc_library_static", "foo", AttrNameToString{
"features": `[
"android_cfi",
"android_cfi_assembly_support",