Skip to content

feat(msvc): add native build, SDK discovery, and COFF validation foundations - #667

Merged
LunaStev merged 6 commits into
wavefnd:masterfrom
LunaStev:feat/msvc-native-foundation
Sep 16, 2026
Merged

LunaStev merged 6 commits into
wavefnd:masterfrom
LunaStev:feat/msvc-native-foundation

Conversation

@LunaStev

Copy link
Copy Markdown
Member

Windows MSVC builds need a verified native x64 LLVM dependency set, target-specific SDK libraries, and validation of COFF inputs before the linker can replace outputs. This PR adds those foundations and their regression coverage in six issue-specific signed-off commits.

  • Add a native x64 MSVC CI job with checksum-pinned LLVM 21.1.8, matching libxml2, architecture checks, inspected static CRT settings, and native allocator/runtime tests. Share provisioning with ARM64 while retaining its existing entry point.
  • Resolve SDK UM/UCRT and VC libraries from explicit paths, LIB, configured installation roots, the Windows installer registry, and Visual Studio discovery. Select complete numeric versions and the requested target architecture. Both linker entry points use the same discovery and validation code.
  • Inspect ordinary COFF, bigobj, import objects and archive members/indexes before launching the linker. Reject incompatible or malformed inputs without replacing existing outputs, including objects without filename extensions.
  • Include enabled MSVC targets in existing system/socket ABI checks, test linker argument combinations, and require lld-link.exe in the existing MSVC package tool inventory.

Validation:

  • Full local workspace/all-target Rust suite: 208 passed; subsequent focused MSVC/SDK regressions passed after final refinements.
  • X86-only and AArch64-only system ABI/std-net runs passed, as did Clippy with warnings denied, formatting and whitespace checks.
  • Python tooling: 89 tests, 21 expected skips. Native I/O scenarios execute through the Rust harness.
  • Provisioning scripts and workflow PowerShell parsed; real x64/ARM64/mixed/empty archive guard tests passed on Linux.
  • Downloaded official x64 SDK checksum verified; real LLVMSupport.lib and LLVMCore.lib passed the new inspector. Windows-specific registry code cross-compiled as MSVC Rust metadata.

Native Windows provisioning, build and execution are still pending the CI runs for this PR. Local cross-compilation and archive checks are not native execution evidence. The known timed-I/O fixture issue #635 remains relevant; these tests are retained.

Inspection currently rejects LLVM bitcode, thin archives and user-supplied response-file inputs explicitly; response-file support remains #620. Object-embedded linker directives are still interpreted by the linker.

This is part of #611. Full MSVC release packaging (#621) is deferred as requested; default-target switching and GNU/MinGW retirement remain later work. No Wave std/sys libc bindings are introduced.

Fixes #612
Fixes #613
Fixes #614
Fixes #627
Fixes #628
Fixes #629

@LunaStev LunaStev added build Issues related to building the project or compiling errors. migration Issues related to migrating from older systems or versions. ci GitHub CI or CI labels Sep 16, 2026
@LunaStev
LunaStev merged commit f200370 into wavefnd:master Sep 16, 2026
21 of 27 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

Labels

build Issues related to building the project or compiling errors. ci GitHub CI or CI migration Issues related to migrating from older systems or versions.

Projects

None yet

1 participant