File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,14 @@ fn main() -> Result<()> {
454454 // macOS universal binary or x86_64 binary that works on both x86_64 and AArch64 (rosetta).
455455 download_info. remove ( & HostPlatform :: aarch64_macos) ;
456456 }
457+ if download_info. contains_key ( & HostPlatform :: x86_64_windows)
458+ && download_info. contains_key ( & HostPlatform :: aarch64_windows)
459+ && download_info[ & HostPlatform :: x86_64_windows] . url
460+ == download_info[ & HostPlatform :: aarch64_windows] . url
461+ {
462+ // x86_64 Windows binary that works on both x86_64 and AArch64.
463+ download_info. remove ( & HostPlatform :: aarch64_windows) ;
464+ }
457465 has_build_metadata |= !semver_version. build . is_empty ( ) ;
458466 if semver_version. pre . is_empty ( ) {
459467 semver_versions. insert ( semver_version. clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments