Skip to content

Commit 5a7a1a5

Browse files
committed
Disable genrules on windows
1 parent 5d3b06e commit 5a7a1a5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/BUILD.bazel

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ genrule(
109109
grep '@@rules_rs++crate+cfg_feature_target_dep//:itoa-1.0.15' $(location :cfg_feature_target_dep_inner_deps)
110110
echo ok > $@
111111
""",
112+
target_compatible_with = select({
113+
"@platforms//os:windows": ["@platforms//:incompatible"],
114+
"//conditions:default": [],
115+
}),
112116
)
113117

114118
genquery(
@@ -126,6 +130,10 @@ genrule(
126130
grep '@@rules_rs++crate+first_party_feature_propagation//:ryu-1.0.23' $(location :first_party_feature_propagation_dep_leaf_deps)
127131
echo ok > $@
128132
""",
133+
target_compatible_with = select({
134+
"@platforms//os:windows": ["@platforms//:incompatible"],
135+
"//conditions:default": [],
136+
}),
129137
)
130138

131139
genquery(
@@ -180,6 +188,10 @@ genrule(
180188
grep '@@rules_rs++crate+workspace_member_annotation_features//:ryu-1.0.20' $(location :workspace_member_annotation_features_dep_leaf_deps)
181189
echo ok > $@
182190
""",
191+
target_compatible_with = select({
192+
"@platforms//os:windows": ["@platforms//:incompatible"],
193+
"//conditions:default": [],
194+
}),
183195
)
184196

185197
verify_dep_absent(
@@ -240,6 +252,10 @@ genrule(
240252
grep 'lib/rustlib/src/library' $(location @rules_rust//rust/private:rust_analyzer_detect_sysroot)
241253
echo ok > $@
242254
""",
255+
target_compatible_with = select({
256+
"@platforms//os:windows": ["@platforms//:incompatible"],
257+
"//conditions:default": [],
258+
}),
243259
)
244260

245261
filegroup(

0 commit comments

Comments
 (0)