Skip to content

Commit d222603

Browse files
authored
Fix windows toolchain target_compatible_with (#1616)
It seems like this was incorrectly targeting apple constraints, when really if this works at all today it will only be able to build windows targets for now. Fixes #1614
1 parent 4de81e3 commit d222603

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

swift/internal/swift_autoconfiguration.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,10 @@ toolchain(
364364
"@platforms//os:windows",
365365
"@platforms//cpu:x86_64",
366366
],
367-
target_compatible_with = APPLE_PLATFORMS_CONSTRAINTS[arch],
367+
target_compatible_with = [
368+
"@platforms//os:windows",
369+
"@platforms//cpu:x86_64",
370+
],
368371
toolchain = ":windows-toolchain",
369372
toolchain_type = "{toolchain_type}",
370373
visibility = ["//visibility:public"],

0 commit comments

Comments
 (0)