Repository navigation
2026.12.7.1: the uses of a path, one table of roots, and tools named by their address - #1054
Merged
Merged
Conversation
…thing else writes the home
…ect, a link followed; an undecided question is reported once
… module, and the CI check holds the rest at zero; compiler-run state and registration keep the given spelling
…y path by its given spelling
Sunrisepeak
force-pushed
the
fix/replay-cases-own-home
branch
from
December 6, 2026 16:29
8a7ec98 to
0c9d130
Compare
… hermetic check read it
…rogram's inner build alone states its own
… driver in the form each link route reads
… by; the hermetic check compares its directories by components
…ect still names the default libraries of the CRT model
…command; a test run under --verbose and a home named through an alias are cases
…ocs/09 and docs/20 state the driver's view of itself, the scope of --verbose and -nostdlib on the MSVC ABI
…directory's own volume is not asked for its identity, and an undecided question names the node it could not read
…and when a root is asked for its identity
…ot gives no identity by its name; two unit cases expect the given spelling
This was referenced Dec 6, 2026
Closed
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.
Implements the design
.agents/docs/2026-12-07-path-uses-roots-and-tool-addresses-design.md.The uses of a path (SPEC-020)
mcpp.libs.path_identityanswers each use of a path with one function: an address (given), a kept key (key), whether two paths are one object or one lies within a directory (same,within,beneath, by the spellings, then with links followed, then by the identity mcpplibs.os reads through a handle), a set of existing nodes (object), a link followed on purpose (resolved), and a physical spelling for diagnostics only (describe). A question whose identity cannot be read is decided by the spellings and reported once as a degradation (path).check_path_identity.shholds every othercanonical/weakly_canonicalat zero; the baseline file is gone.resolved; a registration publishes under the runtime directory as the system reports it (mcpp#1048, mcpp#1049).mcpp.build.roots): thetrim_pathsprefix map and the link's hermetic check read it.Tools named by their address (SPEC-006 §3.12, SPEC-020 §9)
tools.ld, else the tree's lld of the link's flavour. It reaches the driver in the form each route reads, measured with-###on LLVM 23.1.3:--ld-pathfor ELF, Mach-O and MinGW; an absolute-fuse-ldfor wasm;-B<dir> -fuse-ld=<name>on the MSVC ABI, where--ld-pathwas reported unused. A stated linker namedlinkorlldis refused on the MSVC ABI (mcpp#1050, mcpp#1053).-no-canonical-prefixes. The hermetic check keeps allowing the upstream store, since gcc resolves its own path (measured: e2elayers/201); it compares its directories by components.Other changes
--verboseapplies to every build a command runs;BuildOptions::verbosetakes the command's verbosity by default, and a build program's inner build alone states its own.-nostdlibin[build] ldflagsis noted once (build/msvc-nostdlib); the build is unchanged (mcpp#1051).graph/834runs in a home of its own.Tests
linker_wordson four routes.ld.lldand a stated linker run (Linux); a stated linker on the MSVC ABI is started by the driver, andlink.exeis refused (Windows);-nostdlibnoted (Windows); a home initialized and named through an alias appears only by the alias in the graph and the compile database ofbuild,testandpack; a path dependency named by two spellings is one package;test --verboseprints compile commands.mcpp test unit182 programs, 2831 cases;e2e/toolchain; scripts 86, 914, 37 and 901.Specification and documentation
[Unreleased]entry forpack --verbose.