Skip to content

feat(windows): switch to MSVC and add native acceptance gates - #687

Merged
LunaStev merged 2 commits into
wavefnd:masterfrom
LunaStev:feat/windows-msvc-cutover
Sep 22, 2026
Merged

LunaStev merged 2 commits into
wavefnd:masterfrom
LunaStev:feat/windows-msvc-cutover

Conversation

@LunaStev

Copy link
Copy Markdown
Member

Summary

Windows builds and generated programs now use native MSVC on amd64 and ARM64. Retired GNU/MinGW target names produce migration diagnostics, and Windows release archives are built and checked with native MSVC tools.

  • Add UTF-16 linker response files for long and Unicode paths while preserving transactional output publication.
  • Extend native acceptance tests with large stack frames, stack walking, bidirectional DLL/C interoperability, allocator ownership, and long-path linking through Microsoft LINK and lld-link.
  • Run both full Windows case selections with explicit MSVC targets, including ARM64 cases previously restricted to object generation. Preserve the existing C ABI workloads by adapting them to MSVC.
  • Stage compiler/tools/runtime dependencies with strict PE architecture and transitive import checks. Verify extracted archives in a controlled environment with the documented Windows SDK/VC prerequisites.
  • Gate Windows CI and release workflows on native execution and package checks; remove the obsolete Windows GNU build, discovery, and packaging paths.

Motivation

Complete the remaining implementation in the next-release MSVC migration tracker. The native execution and packaging gates still need to pass on this PR before the cutover is accepted.

Closes #618
Closes #619
Closes #620
Closes #621
Closes #622
Closes #623
Closes #624
Closes #625
Closes #626
Closes #611

Related: #292.

Target and compatibility impact

This is a breaking target change for Windows GNU/MinGW users: use x86_64-pc-windows-msvc or aarch64-pc-windows-msvc and the documented Microsoft toolchain prerequisites. Windows host defaults select MSVC. README and release instructions describe the change.

Non-Windows GNU targets and Linux LoongArch64 remain supported. The Wave standard-library OS providers retain their native API implementations.

Validation

Passed locally on Linux:

  • cargo test --locked --workspace --all-targets --no-default-features --features llvm-target-core64 --jobs 2: 208 tests, including 74 codegen regressions.
  • Workspace/all-target Clippy with warnings denied for core64 and isolated AArch64 features; formatting, rustdoc with warnings denied, and git diff --check.
  • Python tooling tests, including the final 35-test package/runner selection suite; case manifest validation for 37 targets.
  • New fixtures compiled to x64/ARM64 COFF at O0/O2, with unwind records and stack-probe references inspected. These are compile checks, not native execution results.
  • Actual long UTF-16 response-file linking and failure preservation with lld-link, plus dependency-closure checks on generated x64/ARM64 PE files.
  • Changed workflows passed actionlint with the existing windows-11-vs2026-arm label supplied to the checker's configuration.

Pending in PR CI: native Windows x64/ARM64 Rust and Wave execution, stack/DLL/C ABI acceptance, both complete Windows case selections, and extracted-package execution. The local Windows VM was prepared, but its native acceptance run was not completed. Native success is not claimed from the Linux checks.

Checklist

  • Commits include a DCO Signed-off-by line.
  • Tests cover new behavior or the PR explains why no test is needed.
  • User-facing changes include documentation or diagnostics updates.
  • The change preserves the license boundary between the compiler and std/.

@LunaStev
LunaStev merged commit ff9f989 into wavefnd:master Sep 22, 2026
23 of 25 checks passed
@LunaStev LunaStev mentioned this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment