Skip to content

Resolve a coherent Windows SDK and VC library set for MSVC output targets #613

Closed

Description

@LunaStev

Part of #611. Difficulty: high. Audit baseline: master 3950416e (2026-09-12).

Current evidence

llvm/src/backend.rs delegates SDK/VC discovery to LIB or -L. src/cli.rs adds a generic SDK hint only after linking fails. The MSVC path does not select and explain a complete target-specific SDK set.

Scope

Add deterministic discovery for installed Windows SDK UM/UCRT and VC libraries, with explicit user overrides taking precedence. Distinguish the architecture of the executable linker from the target architecture of its libraries. Integrate both driver/backend entry paths without silently falling back to GNU. Cross-host linking may require explicitly supplied SDK inputs; do not claim it works without them.

Completion criteria

Test explicit paths, a configured Developer Prompt, ordinary shells, missing components, multiple installed versions, paths with spaces, and x64/ARM64 selection. Dry-run/diagnostics identify selected tools and library roots. Missing or incompatible prerequisites produce actionable errors before publishing outputs. Keep SDK discovery separate from the COFF input inspector and package staging tasks.

Dependencies and boundaries

#498; coordinates with #612, #614, and #621.

Activity

  1. added
    build
    enhancement
    help wanted
    migration
    on Sep 12, 2026
  2. added a commit that references this issue on Sep 16, 2026
    f200370
  3. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildenhancementhelp wantedmigration

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions