You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Validate hosted MSVC startup and generated runtime-helper dependencies #617
buildIssues related to building the project or compiling errors.enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.needs testingIssues that require additional testing or verification.
Part of #611. Difficulty: very high. Audit baseline: master 3950416e (2026-09-12).
Current evidence
llvm/src/backend.rs selects console/DLL flags and static or dynamic CRT default libraries. tests/codegen_regressions.rs mainly proves custom-entry /NODEFAULTLIB images; it does not establish the ordinary hosted startup path across both architectures and CRT modes.
Scope
Audit and complete the ordinary Wave main-to-process-exit path under the existing MSVC startup model. Establish which generated memory, arithmetic and floating-point helper symbols each supported optimization/CRT mode needs and resolve them from matching runtime inputs. Keep compiler-host allocator settings separate from the generated program runtime choice. This work must not replace std/sys providers with libc wrappers.
Completion criteria
Native x64 and ARM64 fixtures with implicit and explicit main return types, nonzero status, std output, globals and aggregate copies link and execute under every advertised CRT mode. Capture undefined-helper and mismatched-runtime failures. Custom entry/no-default-libraries retains its explicit contract. Unsupported mode combinations fail clearly. Runtime-dependent fixtures must exercise ordinary startup instead of bypassing it with /NOENTRY or hand-written assembly. Parameterized main/new language features are outside scope (#452).
buildIssues related to building the project or compiling errors.enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.needs testingIssues that require additional testing or verification.
Activity
fix(msvc): validate native Windows runtime and C ABI (#668)