Make bp2build-generated selects() based on product config build settings
...instead of based on constraint settings. Bug: 269577299 Test: m nothing and ./build/bazel/ci/bp2build.sh Change-Id: Ib9caec79c92b8fd304e46be841de5612bd1637e3
This commit is contained in:
@@ -640,7 +640,10 @@ func TestBp2buildHostAndDevice(t *testing.T) {
|
||||
}`,
|
||||
ExpectedBazelTargets: []string{
|
||||
MakeBazelTargetNoRestrictions("custom", "foo", AttrNameToString{
|
||||
"target_compatible_with": `["//build/bazel/product_variables:unbundled_build"]`,
|
||||
"target_compatible_with": `select({
|
||||
"//build/bazel/product_config/config_settings:unbundled_build": [],
|
||||
"//conditions:default": ["@platforms//:incompatible"],
|
||||
})`,
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user