Create Stub targets for cc_library_(static|shared)
Fixes: 246958825 Test: Temporarily allowlist module and inspect BUILD.bazel Change-Id: I4baeec2d873fefabd49ce77508630b82f759820a
This commit is contained in:
@@ -1355,26 +1355,6 @@ func makeCcLibraryTargets(name string, attrs AttrNameToString) []string {
|
||||
return []string{staticTarget, sharedTarget}
|
||||
}
|
||||
|
||||
func makeCcStubSuiteTargets(name string, attrs AttrNameToString) string {
|
||||
if _, hasStubs := attrs["stubs_symbol_file"]; !hasStubs {
|
||||
return ""
|
||||
}
|
||||
STUB_SUITE_ATTRS := map[string]string{
|
||||
"stubs_symbol_file": "symbol_file",
|
||||
"stubs_versions": "versions",
|
||||
"soname": "soname",
|
||||
"source_library": "source_library",
|
||||
}
|
||||
|
||||
stubSuiteAttrs := AttrNameToString{}
|
||||
for key, _ := range attrs {
|
||||
if _, stubSuiteAttr := STUB_SUITE_ATTRS[key]; stubSuiteAttr {
|
||||
stubSuiteAttrs[STUB_SUITE_ATTRS[key]] = attrs[key]
|
||||
}
|
||||
}
|
||||
return MakeBazelTarget("cc_stub_suite", name+"_stub_libs", stubSuiteAttrs)
|
||||
}
|
||||
|
||||
func TestCCLibraryNoLibCrtFalse(t *testing.T) {
|
||||
runCcLibraryTestCase(t, Bp2buildTestCase{
|
||||
ModuleTypeUnderTest: "cc_library",
|
||||
|
Reference in New Issue
Block a user