Skip to content

Commit

Permalink
codegen: Dedup x86_64_windows/aarch64_windows
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Feb 11, 2025
1 parent 771bd4f commit c92f25f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,14 @@ fn main() -> Result<()> {
// macOS universal binary or x86_64 binary that works on both x86_64 and AArch64 (rosetta).
download_info.remove(&HostPlatform::aarch64_macos);
}
if download_info.contains_key(&HostPlatform::x86_64_windows)
&& download_info.contains_key(&HostPlatform::aarch64_windows)
&& download_info[&HostPlatform::x86_64_windows].url
== download_info[&HostPlatform::aarch64_windows].url
{
// x86_64 Windows binary that works on both x86_64 and AArch64.
download_info.remove(&HostPlatform::aarch64_windows);
}
has_build_metadata |= !semver_version.build.is_empty();
if semver_version.pre.is_empty() {
semver_versions.insert(semver_version.clone());
Expand Down

0 comments on commit c92f25f

Please sign in to comment.