Repository navigation
fix: honor exact Clang linker overrides on the MSVC route - #1060
Draft
dreamyloong2005 wants to merge 1 commit into
Draft
dreamyloong2005 wants to merge 1 commit into
dreamyloong2005 wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Clang/MSVC route uses the exact supplied linker executable through -fuse-ld plus a preserved empty -B argument. Project C/C++ links, build-contract links and host argv share the policy. Other Clang ABIs retain --ld-path. Selecting only a basename is avoided so a disappeared override cannot silently select another same-named linker.
Closes #1053.
Criteria
/out:build-program.exeargument, then checks a missing override refusal. It uses an isolated home and clears inherited MCPP_TOOLCHAIN for the manifest-owned calls.Fresh integration
ci.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
ClangLinkerOverride/ClangLinkerOverrideFlags, native marker controls ande2e/windows/explicit_linkerCompatibility
The documented tools.ld contract is retained. No wrapper program, global serializer change, fallback to a different linker, permission grant or external dependency patch is introduced. Non-MSVC Clang routes retain --ld-path; GCC’s existing override refusal is unchanged.
Checks before merging
git diff --checkandcheck_workflow_assertions.pypass locally.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:fullbefore the next push according to the contributing workflow. No separate duplicate workflow dispatch is requested.