Remove system shared libs from non-bionic dep list
bionic system shared libraries only build for bionic platforms, so it is safe to remove them from other platforms, preventing issues where duplicate libraries are incorrectly identified in Bazel. Test: go test soong tests Change-Id: Idac27c49a464831f8aca02d561f41f98fc763337
This commit is contained in:
@@ -1419,13 +1419,7 @@ cc_library_static {
|
||||
}
|
||||
`,
|
||||
ExpectedBazelTargets: []string{
|
||||
MakeBazelTarget("cc_library_static", "all", AttrNameToString{
|
||||
"implementation_dynamic_deps": `select({
|
||||
"//build/bazel/platforms/os:android": [],
|
||||
"//build/bazel/platforms/os:linux_bionic": [],
|
||||
"//conditions:default": [":libc"],
|
||||
})`,
|
||||
}),
|
||||
MakeBazelTarget("cc_library_static", "all", AttrNameToString{}),
|
||||
MakeBazelTarget("cc_library_static", "keep_for_empty_system_shared_libs", AttrNameToString{
|
||||
"implementation_dynamic_deps": `[":libc"]`,
|
||||
"system_dynamic_deps": `[]`,
|
||||
|
||||
Reference in New Issue
Block a user