Skip to content

fix: retain local Clang program-search paths for MSVC links - #1057

Draft
dreamyloong2005 wants to merge 1 commit into
mcpp-community:mainfrom
dreamyloong2005:codex/fix-clang-program-search
Draft

dreamyloong2005 wants to merge 1 commit into
mcpp-community:mainfrom
dreamyloong2005:codex/fix-clang-program-search

Conversation

@dreamyloong2005

Copy link
Copy Markdown
Contributor

Summary

A focused toolchain-model policy selects the supplied local Clang bin-directory spelling when it contains a regular lld-link executable. Project C/C++ links and host-link tokens add that directory as a Clang program-search prefix. Explicit tools.ld overrides, managed toolchains, other compilers/ABIs and absent linkers retain their existing behavior.

Closes #1050.

Criteria

  • The actual new production leaf is split with the production private-fragment splitter, compiled and executed: 7 focused policy conditions pass.
  • Registered package-level tests cover local bin/compiler-directory fallbacks, spaces, non-files and explicit-override priority; root tests check C/C++ link-only propagation and host parity.
  • Focused structure tests pass (3/3).

Fresh integration

  • The six-fix Windows integration self-build succeeds with Clang 23.1.3, the system MSVC/Windows SDK and profile ci.
  • Fresh integration: 7 isolated package cases and 3 root flag cases pass with no failures or skips. The complete selected root/CLI run is 30/30; the isolated toolchain-model package run is 14/14. The 15 structural checks also pass.
  • Independent standards and specification reviews completed. The implementation-only import placement findings were corrected before validation.
  • An isolated full-tree build of this single branch and native LPAC/cross-platform/full-suite acceptance remain for hosted CI and follow-up validation.

The native Windows product build and focused CLI checks use a local integration of #1048, #1049, #1050, #1051, #1052 and #1053 on b30e9bc0218730f7ef3b8a9c163ecc31d97aa88e. That is combined validation, not six isolated full-tree builds. The prior 2026.12.4.1 LPAC candidate is separate evidence and is not treated as acceptance of this branch. Linux/macOS and full hosted checks remain pending.

Intersections

New rule or feature Invariant it crosses Test at the crossing
Supplied search prefix on local Clang/MSVC links Explicit linker priority and no change to compile commands or unrelated toolchains ClangProgramSearch and ClangProgramSearchFlags tests

Compatibility

No installation, PATH, ACL or platform provider changes are made. A local Clang/MSVC tree with lld-link receives one link-only program-search prefix; other routes are unchanged. External IPC/Ninja LPAC issues remain independent.

Checks before merging

  • Focused structure checks, git diff --check and check_workflow_assertions.py pass locally.
  • The remaining full required documentation/pin gates are checked by hosted CI before merge.
  • The branch contains no attribution trailers.
  • Required hosted checks and full applicable platform suites pass before merging.
  • Any eventual squash merge uses an explicit English subject and body.

This pull request is a draft. No merge is requested.

These engine fixes require the applicable full CI gates before merge. The contributor cannot assign upstream labels; a maintainer can apply ci:full before the next push according to the contributing workflow. No separate duplicate workflow dispatch is requested.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows/MSVC] Local Clang tree can rediscover lld-link through an ungranted physical path

1 participant