Remove creation of has_stubs in cc_library_shared by bp2build
Because when stubs_symbol_file is defined on cc_library_shared, has_stubs is already implied to be true. Bug: 260771171 Test: go test Change-Id: I3b9a2cfb9000411d1b5f22da87dc339267775799
This commit is contained in:
@@ -1408,7 +1408,6 @@ func makeCcLibraryTargets(name string, attrs AttrNameToString) []string {
|
||||
"linkopts": true,
|
||||
"strip": true,
|
||||
"inject_bssl_hash": true,
|
||||
"has_stubs": true,
|
||||
"stubs_symbol_file": true,
|
||||
"use_version_lib": true,
|
||||
}
|
||||
@@ -2711,7 +2710,6 @@ func TestCcLibraryStaticDisabledForSomeArch(t *testing.T) {
|
||||
|
||||
func TestCcLibraryStubs(t *testing.T) {
|
||||
expectedBazelTargets := makeCcLibraryTargets("a", AttrNameToString{
|
||||
"has_stubs": `True`,
|
||||
"stubs_symbol_file": `"a.map.txt"`,
|
||||
})
|
||||
expectedBazelTargets = append(expectedBazelTargets, makeCcStubSuiteTargets("a", AttrNameToString{
|
||||
|
Reference in New Issue
Block a user