Skip to content

Commit c92f25f

Browse files
committed
codegen: Dedup x86_64_windows/aarch64_windows
1 parent 771bd4f commit c92f25f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/codegen/src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)