diff --git a/swift/internal/swift_autoconfiguration.bzl b/swift/internal/swift_autoconfiguration.bzl index 46f1f3746..27a99652e 100644 --- a/swift/internal/swift_autoconfiguration.bzl +++ b/swift/internal/swift_autoconfiguration.bzl @@ -364,7 +364,10 @@ toolchain( "@platforms//os:windows", "@platforms//cpu:x86_64", ], - target_compatible_with = APPLE_PLATFORMS_CONSTRAINTS[arch], + target_compatible_with = [ + "@platforms//os:windows", + "@platforms//cpu:x86_64", + ], toolchain = ":windows-toolchain", toolchain_type = "{toolchain_type}", visibility = ["//visibility:public"],