Skip to content

Generate and link native Windows MSVC programs for amd64 and ARM64 #498

Closed

Description

@LunaStev

Native Windows ARM64 builds use Rust's MSVC toolchain, but Wave only registers Windows GNU output targets. host_target_triple() in src/cli.rs always selects pc-windows-gnu on Windows; CI explicitly expects that result. Building the compiler with MSVC therefore does not yet provide MSVC-generated Wave executables.

Add x86_64-pc-windows-msvc and aarch64-pc-windows-msvc target handling, MSVC-compatible object/C ABI verification against clang-cl, and a COFF linker path using link.exe/lld-link with correctly selected Windows SDK/UCRT/VCRuntime libraries. Validate machine type for every library and input. Cover executable startup, DLL exports/imports, aggregate returns, stack arguments, variadic calls, and large stack frames. Missing SDK tools must produce actionable diagnostics.

Rollout: explicit MSVC output first, native executable CI on both architectures next, then change native defaults only after coverage passes. Retain current Windows GNU targets, their linker behavior and CI throughout this work; removing GNU is not authorized in this patch.

Parent/native compiler host builds: #292. Existing native ARM64 execution crash: #493; missing HOME: #492. These are dependencies, not duplicates of this output-target task.

Microsoft ARM64 ABI: https://learn.microsoft.com/en-us/cpp/build/arm64-windows-abi-conventions

Activity

  1. added
    enhancement
    help wanted
    os support
    cross-platform
    on Sep 7, 2026
  2. self-assigned this
    on Sep 22, 2026
  3. LunaStev commented on Sep 23, 2026

    @LunaStev
    MemberAuthor

    Native MSVC output is implemented for both amd64 and ARM64: target/default selection, COFF input validation, SDK/linker discovery, startup and bidirectional native C ABI/package checks are present. The native Windows checks passed on merged #698. The later approved Windows GNU retirement supersedes this issue's original temporary coexistence clause. Closing the output-target task; #292 remains separate for the source-build onboarding expectation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cross-platformenhancementhelp wantedos support

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions