Move platform constraints to bazel_common_rules.
This enables sharing of platform constraints between platform and kernel builds. Bug: 304594734 Test: treehugger Change-Id: I48091eeaf2e529c3f180ba056da3935911868b14
This commit is contained in:
@@ -681,11 +681,11 @@ func TestCcGenruleArchAndExcludeSrcs(t *testing.T) {
|
||||
|
||||
expectedBazelAttrs := AttrNameToString{
|
||||
"srcs": `["foo1.in"] + select({
|
||||
"//build/bazel/platforms/arch:arm": ["foo1_arch.in"],
|
||||
"//build/bazel_common_rules/platforms/arch:arm": ["foo1_arch.in"],
|
||||
"//conditions:default": [],
|
||||
})`,
|
||||
"cmd": `"cat $(SRCS) > $(OUTS)"`,
|
||||
"target_compatible_with": `["//build/bazel/platforms/os:android"]`,
|
||||
"target_compatible_with": `["//build/bazel_common_rules/platforms/os:android"]`,
|
||||
}
|
||||
|
||||
expectedBazelTargets := []string{
|
||||
|
Reference in New Issue
Block a user