Repository navigation
v2026.11.21.1
Added
-
The home's unit cache (mcpp#927, docs/26). Before it starts a compiler, the compiler
executor looks up the compile by its command, its compiler and its source's content; when the
files an earlier compile of that key read still hold their contents, its object and BMI are
placed and no compiler starts. A BMI is named by the key of the compile that made it. A fresh
checkout of mcpp on a filled cache built in 4.1 s instead of 164 s, its 288 compiles placed.
The split schedule places its units from the cache too. cl.exe's compiles are not cached. A
Clang compile is given-fmodule-file-deps, so its depfile names the BMIs it imports beside
its headers, and ninja and the cache read them from it. -
A cacheable package's build program runs in the home (mcpp#986, mcpp#927, SPEC-004 §9
item 18). A package whose source is named -- an index's version, a git commit, a path
dependency's content digest -- runs its build program into
build-cache/v1/out/<package>@<version>/<key>/out, keyed by its configuration, and a second
project takes the outputs; a program run bymcpp pack --pkg-formatruns in the project. A
path enters a cache key by its role (<store>,<pkg>,<out>), never as written. -
[profile.<name>] dependency_debug(mcpp#927, SPEC-004 §9 item 20): the debug information
of the dependencies from the package store and git,true,falseor"lines". Omitted,
devanddebugtake"lines"while theirdebugis on. A test program whose only
dependency is mtest fell from 43.7 MB to 8.3 MB and its build from 15.9 s to 7.2 s. -
[build] memory_threshold(mcpp#802, SPEC-004 §9 item 19): the available memory below
which the compiler executor waits for a running compiler to end before it starts another; the
engine's value is 1 GiB,MCPP_MEMORY_THRESHOLDoverrides it, and after a minute below it the
compiler starts and standard error says so. -
One budget of slots for the machine (mcpp#976, SPEC-017 O11).
mcpp teststates a
directory of one slot file per job (MTEST_BUDGET); a compiler a test starts through mcpp
holds a slot of it, so a test that builds a project takes from the run's jobs. A run inside
another runner's budget uses that one. -
The record of a build and of a run (mcpp#927, SPEC-017 B4, P5.6, P12.4).
MCPP_BUILD_RECORD=<file>appends a line per edge a build ran: its package, its time, the
compiler's processor time and largest resident set, and whether the unit cache placed it.
mcpp testkeeps a run's builds inbuilds.ndjson; a run names its machine's class, its
processors and memory, and a case its processor time, its steps, the surface items it used and
the limit it ran within. Estimates prefer the runs of the same class of machine. An edge that
runs a minute is named on aRunningline;--verbosenames the five slowest. -
Run fixtures (mcpp#293, SPEC-017 O6, P11). A program declares a fixture the run shares and
its cases name it inuses;mcpp teststarts it once, withMTEST_SERVE, before the first
program that uses it, gives its endpoint asMTEST_FIXTURE_<NAME>, and ends it after the
last. A fixture that does not become ready is the machine's failure: its users recordinfra.
fixtures.ndjsonstates each fixture's start, readiness and end. -
A header selects the tests that read it.
mcpp test --changed/--sincetakes the units
that read a changed header from the build directory's records (ninja's deps log, the scans'
depfiles) and runs the tests built from them; while a unit of the project has no record, a
header affects every test. -
mcpp emit surfacewrites mcpp's surface, one<kind> <name>per line: the commands and
flags of the command line's definition, the manifest's keys and the refusals' reason tokens.
MCPP_SURFACE_RECORD=<file>makes each process of an invocation append the items it used. -
wirefeaturestest-steps,test-budget,test-jitterandtest-fixtures(docs/50). -
mcpp-community/mcpp/.github/actions/project-test, a downstream repository's test job: the mcpp
the project pins, its home restored by the project's identity,mcpp test, the run's store as
an artifact and its slowest cases and edges in the summary (docs/08). -
A project is told a notice once (design 2026-11-21, build programs' inputs §3.6). Every
warning, note and closing tip goes through one sink; a notice whose kind is registeredonce
(mcpp.notice) is said once per project and subject, recorded intarget/.mcpp-notices, and said
again aftermcpp clean.--verboseshows a suppressed one marked(noted before);--quiet
hides notes. The build database's diagnostics carry every notice, withshown: falsefor one the
terminal did not show (docs/50); a command that plans in a directory of its own (mcpp emit build-database, doctor, publish's plan) reads the record and does not write it.
.github/tools/check_diag_sink.shkeeps notices in the sink. -
A build program's headers are told once: a program of the project that includes a standard,
system or package header receives one note per form, with the form that imports it
(MCPP_BUILD_PROGRAM_INCLUDES_HEADER, docs/30 "Headers or modules"); a file its compile reads
outside its package, its build dependencies and the store is warned once per file
(MCPP_BUILD_PROGRAM_READS_OUTSIDE), andmcpp publishrefuses one its archive does not carry
(build-program-unpublished-input). -
Directive protocol 21:
mcpp:deprecated=, stated by a typed reader that answers by a deprecated
reading. -
[build] allow_host_tools(mcpp#990, SPEC-004 §9 item 21, docs/25): the bootstrap tools a
build takes fromPATHinstead of the store,ninjaandpatchelf, from
MCPP_ALLOW_HOST_TOOLS, the project, thenconfig.toml. Every host input -- a bootstrap tool,
a toolchain named by path,glibc@system, a tool found onPATH-- is a note once per project
and identity (host-input). -
mcpp fetch(mcpp#990, docs/05 "Offline builds and mcpp fetch"): the step of a build that
obtains what it needs, as a command; it plans as--configure-onlydoes and compiles nothing.
mcpp fetch --to <dir>writes the payloads the build used with their closures, the index
snapshots and agit bundleof each git clone into a directory described bybundle.toml;
mcpp fetch --from <dir>takes such a directory into a home, a fresh one included, after
which the directory may be removed. A bundle that lacks a versionmcpp.lockrecords is
refused (bundle-older-than-lock); one written on another host or for none of the selected
targets is warned (bundle-lacks-target). -
[build] offlineinmcpp.tomlandconfig.toml(SPEC-004 §9 item 22), below--offline
andMCPP_OFFLINE(0turns it off for a run). A refusal of an offline run names the tier
that made it offline. Workspace members that state different values of it, or of
[build] allow_host_tools, are planned apart, each plan with its root's value. -
[xlings] archivesinconfig.tomlandmcpp.toml, andMCPP_ARCHIVES(SPEC-004 §9
item 23, docs/25 "Archive directories"): directories of archives taken by sha256 before the
network, and in its place offline, where a payload the home lacks is installed from the
download cache or a directory; one none holds is refused (artifact-unavailable-offline).
A directory outside the project named inmcpp.tomlis a note once
(machine-path-in-manifest). -
A package's features are machine-readable (mcpp#992, SPEC-004 §16, docs/06 "Reading a
package's features").mcpp search --format jsonstates, for each package of an mcpp index,
the features of its newest version (features:version,state,from,list),
read from the index or the installed payload; a payload that is not installed is
not-installedwith anulllist, and the query installs nothing.mcpp why features [--format json](mcpp.why.features) lists each package of the resolved graph with the
features it declares and those the build activates, whichresolution.jsonrecords
(features,feature_list).--protocol-versionlistspackage-features. A table-form
feature, and a descriptor'sfeatures.<f>, acceptdescription.
Changed
- A package's instance is a function of its configuration, not of its units (mcpp#986): a
test build aftermcpp buildno longer compiles the package again, and each refusal of the
cache names its reason. The cache's key carries the instance, so a dependency an earlier
release cached is compiled once more after the upgrade and served from then on. - A case's time is the one its scopes state: a case selected with
--caseruns within the
timeoutits listed case states, not the run's. - The defaults are the newest releases (mcpp#988; docs/51): a first run installs gcc 16.2.0 on
Linux x86_64 and on Windows without MSVC (the MinGW row), musl gcc 16.2.0 on the other Linux
architectures, and the bootstrap tools ninja 1.13.2-mcpp.1 and patchelf 0.19.3; gcc 16.2.0
revision 1 brings binutils 2.47 and linux-headers 6.18.64. llvm stays 23.1.3, since
llvm-project's 23.1.6 publishes no macOS binary, and the musl rows stay 16.1.0, the only version
of their cross payloads. A project that built with the earlier default is told once.
check_defaults.shcompares a default with the newest release on every platform it serves. - mcpplibs.mtest 0.11.2 and mcpplibs.os 0.4.7 throughout, the new project's skeleton and the CI
engine included: a case run as a scope names no case in its events. - xlings 2026.11.21.1 is the pinned provider: archives by content,
xlings download --toand
xlings install --from. - CI verifies a tree once (design 2026-11-20 §5.22). A pull request's push runs the
prtier;
aci:fullrun that passes leavesverified-<tree>, a push to main of that tree registers
the run instead of testing again, andrelease.ymlpromotes the four archives that run built
and tested (release-build.yml) instead of building them. The release pull request passes
ci:fullbefore it is merged, and main's run is not cancelled (docs/92).
Deprecated
ambiguous-contract-name(until 2027.2): a name whose variable several dependencies answer,
which a build program's typed reader answered by the first. It still answers so, and every build
whose program asks warns;--strictrefuses it (docs/51).
Fixed
- A cached dependency is served only against the module interfaces it was compiled with
(SPEC-001 §10.4 item 7). An entry records the digest of each upstream interface it imported;
when an upstream is compiled again (its entry removed bymcpp cache gc, then built at
another path), its dependents are compiled with it and their entries written again, instead of
being served and failing withmodule '<name>' CRC mismatch. Entries an earlier mcpp wrote
for packages that import another package's module are filled again once. - The store's nasm, installed by link from an upstream home, is no longer reported as the host's
assembler: the store is judged by path, not by where the link leads. mcpp test --failedreads the newest run when two runs started in the same second: the
later line of the store's index is the newer run.- What a scope's body does is the program's (SPEC-017 P5.6, mtest 0.11.2): a
step,
exerciseormetricevent that names no case is kept in the program's record (steps,
exercised,metrics) instead of making a case that never ended, which failed a Windows
program whose suite probed Visual Studio before its cases. - A test that holds the machine has the budget's slots (SPEC-017 O11 item 5): a worker of
mcpp testthat waits for the machine gives its slot back, so the build of amachinetest
runs its compilers in parallel instead of on the one slot its worker held. - A compiler's version is what its driver states for machines (mcpp#989): GCC's
-dumpfullversion(else-dumpversion) and clang's-dumpversion, not the last number of the
banner, which read Fedora'sg++ (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)as3. A triple's
vendor field is any word, as GNU config.sub reads it (x86_64-redhat-linuxis
x86_64-linux-gnu); a toolchain whose target mcpp cannot read is reported as a degradation
instead of applying none of the target's settings in silence. - A build no longer requires patchelf (mcpp#990): a payload's install declares it and the
provider installs it then, and mcpp runs it only when it packs. A build with the machine's
toolchain andglibc@systemwas refused in a home without it. - A toolchain request has one answer (mcpp#988, SPEC-006 §2.6 to §2.8, docs/20). A partial
version (gcc@16) is the newest release of the local index whose version it is a prefix of, in
mcpp toolchain install,mcpp toolchain defaultand a build alike;toolchain defaulttook the
newest installed version and a build the one the payload manager kept active. A partial version
mcpp.tomlstates is recorded inmcpp.lock([toolchain."xim:gcc@16"]) and read back until
mcpp update; under--lockeda lock without the record is kept as it is and the build says so.
A project that states no toolchain is told once when the default it follows answers another
toolchain than the one it last built with. - A required
dlopenlibrary is judged from the object that loads it (design 2026-11-21
§3.10, docs/33, docs/91). The post-link validation andmcpp self doctorlooked for it on the
union of the plan's search paths, the executable'sDT_RPATH; an object withDT_RUNPATH, as
every payload xlings installs carries, searches noDT_RPATH, so xim:slint'slibslint_cpp.so
could not load X11, Wayland or GL in any program mcpp built while both checks passed. Each
required soname is now looked up from the requiring package's own shared objects by glibc's
rule, through one function both checks call, and one that cannot be reached is reported
(runtime/dlopen-unreachable). TheDT_NEEDEDwalk applies the same rule to the farm. - A toolchain's companions are the versions its payload declares (mcpp#990, SPEC-006 §2.9).
binutils, the kernel headers and GCC's runtime were the first version a directory walk of the
store returned: with binutils 2.42 and 2.42.1 installed, GCC 16.1.0 built with 2.42, which its
recipe does not declare. The version is now the one the payload's descriptor declares, else the
newest, and a declared one the store lacks is reported.default = { package = "gcc@…", companions = { binutils = "xim:binutils@…" } }states another binutils; an older one than the
declared is refused (companion-too-old). - The command line's
@selects by the written prefix (SPEC-001 §4.5):--template mcpplibs.mwrap.slint@1.19.0selects the newest key 1.19.0.x (it refused, as no key is
1.19.0);@=<key>selects one key,@^1.19is a requirement, and an exact miss names the
finer keys. - An edit of a header a build program includes compiles and runs the program again (mcpp#991).
The program's identity was predicted at three places -- the fast path, the group record and the
home run cache -- and a header is no package's, so the old program ran with the old directives,
also aftertarget/.build-mcppwas deleted. The files the program's compile read are observed,
from the sub-build's dependency records, recorded with the program and compared by size and time,
then content; a declared input (rerun_if_changed) is compared the same way. - A name in a build program's contract is judged by its variable (mcpp#852):
foo-bar,
foo_barandfoo.barpublish one variable, and a variable several dependencies, tools or
payloads answer belongs to none of them.MCPP_DEP_AMBIGUOUS_<KEY>(MCPP_XPKG_AMBIGUOUS_<KEY>)
lists the spellings that name one, anddep_dir,dep_linkage,dep_binandxpkg_dirasked
by the name end the program naming them. The per-buildcollides onwarnings are removed. mcpp why <topic> <subject> --format jsonreports a refusal whose branch has no token as
other, asmcpp why toolchaindoes; it reportednonebesiderefused. Both take the reason
from one function of the refusal record.- A message that names a toolchain to write or to install names this host's first run, read from
the built-in table: the refusal of[toolchain] = "system", the examples ofmcpp toolchain's
argument errors,mcpp toolchain listandmcpp self configwith nothing installed, and
mcpp self doctor's hints for the optional cross toolchains, which name
mcpp toolchain install --target <triple>. They named gcc 16.1.0 as written in the code. - A GCC named by path whose project states
tools = { as = ... }(orld) compiles and links with
that binutils, as itsstdmodule's compile already did (mcpp#755). The compile and link lines
took their-Bfrom the archive tool's directory; such a GCC has no archive tool beside its
driver, so they had none, and the driver ran the host's assembler from PATH, which cannot read
gcc 16.2.0's.base64directive (binutils 2.42). Both take the directory from one function now. - A compiler whose baked sysroot is the building home's
subos/currentlinks against this home's
C library, as one whose baked sysroot issubos/defaultdoes. gcc 16.2.0 revision 1 names
subos/current; the remap recognisedsubos/defaultalone, and the link of a program whose
environment no package describes found no C library. mcpp index listnames the registriesmcpp index addadded. It read the provider's list of
registries in an older form, found none in the current one, and showed the configuration's
alone; the text form now marks the default as the JSON form does.- A program's resource script is compiled with its package's
include_dirsexpanded, as the
compile steps expand them: a relative entry is a glob, and*/includenames the directories it
matches. It reachedllvm-windresas written, and LLVM's tools on Windows expand wildcards in
their own command line against files, so the preprocessor saw several inputs and refused
("cannot specify -o when generating multiple output files"); on other hosts the literal*
found nothing. Every program of a package whoseinclude_dirsname an archive's wrap layer
failed so on Windows, among them compat.protobuf'sprotochost tool, which gRPC's code
generation builds.