Repository navigation
fix: omit injected CRT defaults for explicit nostdlib projects - #1058
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
For parsed project link words containing the exact -nostdlib token on Clang/MSVC, compilation retains the runtime ABI choice and adds -fms-omit-default-lib. The omission applies to project compilation, not build contracts, host tools or standard-library module commands. It does not add a global /NODEFAULTLIB or rewrite third-party objects.
Closes #1051.
Criteria
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
MsvcRuntimePolicyandMsvcRuntimePolicyFlagstests plus native COFF controlsCompatibility
Only the explicit project -nostdlib case on Clang/MSVC changes. Other flags, compilers, ABIs, host/build-contract commands and standard-library module compilation retain their defaults. Foreign object directives remain the link author’s responsibility.
Checks before merging
check_docs_style.sh,check_docs_structure.sh,check_version_pins.shandcheck_workflow_assertions.pypass locally. On Windows the unchanged shell checks run from LF-normalized scratch copies with the original working directory; invalid/truncated shell-harness attempts are not counted.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.