Skip to content

2026.12.7.1: the uses of a path, one table of roots, and tools named by their address - #1054

Merged
Sunrisepeak merged 18 commits into
mainfrom
fix/replay-cases-own-home
Dec 6, 2026
Merged

Sunrisepeak merged 18 commits into
mainfrom
fix/replay-cases-own-home

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Dec 6, 2026 •

Copy link
Copy Markdown
Member

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_identity answers 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).
  • The 65 call sites that resolved a path to its canonical form are migrated by use (design, appendix A). check_path_identity.sh holds every other canonical/weakly_canonical at zero; the baseline file is gone.
  • A compiler run's working directory and lock are opened by the given spelling; its key and the output identity use resolved; a registration publishes under the runtime directory as the system reports it (mcpp#1048, mcpp#1049).
  • One table of roots (mcpp.build.roots): the trim_paths prefix map and the link's hermetic check read it.

Tools named by their address (SPEC-006 §3.12, SPEC-020 §9)

  • The linker of a clang toolchain named by path is one fact: 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-path for ELF, Mach-O and MinGW; an absolute -fuse-ld for wasm; -B<dir> -fuse-ld=<name> on the MSVC ABI, where --ld-path was reported unused. A stated linker named link or lld is refused on the MSVC ABI (mcpp#1050, mcpp#1053).
  • Every clang driver mcpp starts (compile, link, probe) is given -no-canonical-prefixes. The hermetic check keeps allowing the upstream store, since gcc resolves its own path (measured: e2e layers/201); it compares its directories by components.

Other changes

  • --verbose applies to every build a command runs; BuildOptions::verbose takes the command's verbosity by default, and a build program's inner build alone states its own.
  • On the MSVC ABI, -nostdlib in [build] ldflags is noted once (build/msvc-nostdlib); the build is unchanged (mcpp#1051).
  • The e2e case graph/834 runs in a home of its own.

Tests

  • Unit: the path module; registration and output identity through links; linker_words on four routes.
  • e2e: a tree's ld.lld and a stated linker run (Linux); a stated linker on the MSVC ABI is started by the driver, and link.exe is refused (Windows); -nostdlib noted (Windows); a home initialized and named through an alias appears only by the alias in the graph and the compile database of build, test and pack; a path dependency named by two spellings is one package; test --verbose prints compile commands.
  • Local: GCC 16.1.0 and LLVM 23.1.3 builds; mcpp test unit 182 programs, 2831 cases; e2e/toolchain; scripts 86, 914, 37 and 901.

Specification and documentation

  • New SPEC-020; SPEC-006 §3.12; docs/05, 09, 20 and 25 in English and Chinese; AGENTS.md; the contributing skill; CHANGELOG 2026.12.7.1, which takes in the [Unreleased] entry for pack --verbose.

@Sunrisepeak Sunrisepeak changed the title e2e graph/834 runs in a home of its own: a replay holds only while nothing else writes the home 2026.12.7.1: a path is opened under the spelling it was given; one table of roots; the linker is named by its path; every build follows --verbose Dec 6, 2026
…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
@Sunrisepeak
Sunrisepeak force-pushed the fix/replay-cases-own-home branch from 8a7ec98 to 0c9d130 Compare December 6, 2026 16:29
… 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
@Sunrisepeak Sunrisepeak changed the title 2026.12.7.1: a path is opened under the spelling it was given; one table of roots; the linker is named by its path; every build follows --verbose 2026.12.7.1: the uses of a path, one table of roots, and tools named by their address Dec 6, 2026
@Sunrisepeak Sunrisepeak added the ci:canaries Run the canary matrix (canaries.yml) on this pull request label Dec 6, 2026
…directory's own volume is not asked for its identity, and an undecided question names the node it could not read
…ot gives no identity by its name; two unit cases expect the given spelling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:canaries Run the canary matrix (canaries.yml) on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant