Repository navigation
Releases
v2026.11.27.1
Changed
- A dependency's shared library is named by its package. Its file and its SONAME take the
package's qualified name, made a file name by the function that names the package's object
directory:compat.sdl3's targetsdl3buildslibcompat_sdl3.so, and a target named
otherwise than its package follows the package's name (libcompat_sdl3_extra.so). A package of
the default namespace is spelled by its bare name: a target named as its package keeps its
library's name, and one named otherwise follows the package's name (libdep_depshared.so). The
root package and a selected member keep their target's name, and a target that statessoname
is loaded by the name it states. Two packages whose libraries would be loaded by one name are
refused at planning with[soname-collision], naming both. Before,compat.sdl3and
mcpplibs.mwrap.sdl3both madelibsdl3.so. A script outside mcpp that names a dependency's
shared library by its file name follows the change (docs/04, mcpp#975). - The
PATHof a build program, a test and the program ofmcpp runis composed by one
function, the same on every host: the directories of the tools the graph states, then the
declared environment'sbinwhen the project declares one, then thePATHmcpp was started
with. A build program that calls a tool the graph states by its bare name gets the stated one,
and a test finds a tool stated withwhen = "run"on Windows and macOS as on Linux. Before, a
build program'sPATHhad no stated tool, and a test's held the toolchain's environmentbin
on Linux only (docs/23, mcpp#926). mcpp addwrites the form the table already uses for the namespace: the short key in an
existing[dependencies.<ns>]section, else the dotted key<ns>.<name>in[dependencies];
a package of the default namespace is a bare key. Before, it could write a
[dependencies.<ns>]header after dotted keys had defined that table, which TOML 1.0 and every
strict reader refuse.mcpp removetakes--devand--build, asmcpp adddoes
(docs/05, mcpp#964).- The code text of a source, its text with comments and literals blanked, has one reader, shared
by the module scanner, the build optimizations and the check of module names a package
declares. Anexport moduleinside a raw string literal or a comment no longer declares a
module (mcpp#963). - The cache entry of a
pathdependency or apathhost tool records every tree that uses it,
one file per tree under the entry'susers/. A tree that writes or hits the entry of an edited
content withdraws itself from the entries of its earlier contents, and an entry is removed when
no tree uses it. Before, an edit in one checkout removed the entry another checkout's plan named. The
sourcerecord of an earlier mcpp is read as the first user and is not written, so an earlier
mcpp that shares the home removes none of the new entries (docs/09, mcpp#1025). - The home keeps the spelling it is given: a home named through a symbolic link is used under
that name in every path mcpp opens, starts or prints, and its physical path is used only to
decide whether two paths are one object. A comparison that cannot be made is made on the
spelling and reported as degraded. A check in CI holds the physical-path calls outside the
identity function to a baseline that only shrinks (docs/25, mcpp#1024). mcpp publishnormalizes every dependency table, the tables under[target.<selector>]and
each[feature-deps.<feature>]included, through one enumeration of a manifest's dependency
tables, which the loader and the manifest editor also walk. Apathdependency of a feature is
published by its version, and so is a workspace member that lies inside the package's directory
(mcpp#962).- The
host-module-in-dependencieswarning names the two commands that move the entry:
mcpp remove <package>, thenmcpp add --build <package>@<version>(mcpp#993). - mcpp's Windows images reserve 8 MiB of stack for the main thread, the size Linux and macOS give
it. A command nests whole builds in one process:mcpp packprepares the program, a host tool
its platform names and that tool's build programs. Measured on the openkal canary, this held
about 1 MiB of frames, the whole of a PE image's default reserve.
Added
- An
importinside a conditional block (#if,#ifdef, ...) is read by the compiler's
dependency scan with the unit's own compile words, on GCC and on Clang (clang-scan-deps), and
the unit imports what the condition selects. Before, the lexical scan refused the unit. A module
declaration in a conditional block is read the same way; header units are still refused, and so
is such a unit under MSVC, which has no scan at planning (docs/04, mcpp#1026). mcpp add --buildwrites the dependency into[build-dependencies](docs/05, mcpp#993).[profile.<name>] dialect_cxxflags, with the meaning of[build] dialect_cxxflagsand appended
after it: it reaches every unit of the graph and thestdmodule. A workspace's profile takes
it too. SPEC-004 §9 states that a profile'scflagsandcxxflagsreach the root package and
the selected members, and itsopt,debug,ndebug,dialect_cxxflagsandldflagsthe
whole graph. An unknown key in a profile is reported (docs/04, mcpp#1025).- Shell completion.
mcpp self completion [bash|zsh|fish|powershell]writes into
<home>/config/shell/a script that passes the words before the cursor tomcpp __complete,
and prints the line that loads it. mcpp answers from its command tree, with the profiles,
members and dependencies of the manifest in the directory, its target rows, the installed
toolchains and the packages of the local index copies; a completion reads only what is on disk
and initializes no home. The engine is mcpplibs.cmdline 0.0.6 (docs/01, mcpp#794). - A host tool's store entry holds, beside the executable, each shared object its link read from
its own build, and lists them; an entry without them is built again. Before, a tool that linked
a library of its graph shared failed to start from the store (docs/30, mcpp#535). - The file a link reads for a
DT_NEEDEDis the file the loader loads. After an ELF image is
linked, the name is resolved over the image's search path and compared with the shared object
the link recorded reading (--dependency-file), as an object and then by content; another file
is refused with[runtime-closure], naming both. A name nothing answers at load time carries
the same token. UnderMCPP_ALLOW_HOST_LIBSa difference is inconclusive (docs/04, mcpp#537). - An ELF shared image that asks for the static TLS block (
DF_STATIC_TLS) with a TLS segment
larger than glibc serves an image loaded bydlopen(512 bytes) is reported; when its exact
exportssay a host enters it by name, it is refused with[static-tls-image](docs/04,
mcpp#907). - A graph that supplies the C library and no C++ ABI, whose units import the
stdmodule, is
refused at planning with[layer-requirement]and two remedies, a dependency that provides
mcpp:c++-abior[build] cxx_runtime = "host-coupled". Before, thestdmodule's precompile
failed inside the toolchain's headers (docs/22, SPEC-002 §3.11, mcpp#898). - Before
mcpp runandmcpp testexecute an artefact whose#!line names a program that is
not on itsPATH, a note names the program and gives the commands that install a toolchain
descriptor, with the toolchain the build used (docs/20, mcpp#621). - A library a program finds only in the default environment's union view, for a project that
declares no environment, is reported, naming the program and the library (docs/23). - The features of
examples/11-featuresstate their descriptions, and a test holds that a
package's descriptions are the same from its manifest, an inline descriptor and an installed
payload (mcpp#1018).
Deprecated
reopened-dotted-table(until 2027.3): a[header]that reopens a table dotted keys defined.
The two are read together and reported; the nextmcpp addto that table writes the header's
entries as dotted keys (docs/51).implicit-default-environment(until 2027.3): for a project that declares no environment, the
default environment's union view on the run-time search path and the link's--sysroot, and
itsbinon a test'sPATHoutside Windows (docs/23, docs/51).unmatched-exact-export(until 2027.3): an exactexportsname the shared image does not
define, which was dropped from the published set without a word; it is reported (docs/04,
docs/51).
Fixed
- A build with no edit after an edit of a module compiles nothing under clang. clang names every
BMI an importer read by the absolute path it finds it through (-fprebuilt-module-path), and the
graph names the BMI below the build directory; ninja held the two spellings as two files, so the
importer of an importer whose BMI an edit changed was compiled by the next build, which had no
edit. The edge that writes a BMI now states the absolute spelling as an implicit output too
(SPEC-018 §1 item 6, mcpp#1015). examples/11-features/greeterstatedopt_levelin a profile, which is no profile key, and
the profile built without it; it statesopt.- A build after a failed build that stated
MCPP_PRIVATE_FRAGMENT,MCPP_BMI_SCHEDULEor
MCPP_BUILDOPTis the build before it. In 2026.11.26.1 the statement was part of the record of
a build, which a build writes when it succeeds: a build that stated one and failed left its
graph under the record of the build before, and a plain build then replayed that graph and
failed the same way until a source or the manifest was edited. On GCC that is the invocation a
failure'stip:gives (MCPP_PRIVATE_FRAGMENT=conservative mcpp build), which fails where the
purview before the fragment holds a condition. Th...
v2026.11.26.1
Changed
- A private module fragment is still a unit of its own when the purview before it holds
conditions (#if,#ifdef,#ifndef,#elif,#else,#endif) or#errorand
#warning: a condition only decides which declarations exist, and the implementation unit
receives them from the interface. Before, any directive refused. A directive that changes what
the fragment means (#define,#undef,#include,#pragma,#line,_Pragma), and a
condition still open at the module declaration or at the fragment, still leave the source as
written, and--verbosenames the line (SPEC-019 §5). - The text before a fragment is read as C++ tokens. A digit separator (
1'000) no longer hides
the rest of its line, a raw string literal may run over lines and holdmodule :private;, a
staticinsideextern "C" { … }is astaticat namespace scope, and a line continuation
between the module declaration and the fragment leaves the source as written. Each of these
only makes more sources built as written (SPEC-019 §5 items 4 and 8). MCPP_BUILDOPT,MCPP_PRIVATE_FRAGMENTandMCPP_BMI_SCHEDULEare part of the request a
recorded build is replayed for: the first build after one of them changes writes the graph
again. Before, a build with no edit replayed the graph the other value had written.
Added
[build] private_fragment = "conservative"(andMCPP_PRIVATE_FRAGMENT=conservative): the
fragment is a unit of its own, and any directive in the purview before it leaves the source as
written, as before conditions were let through. It is the way to check the entry on GCC, which
cannot build a fragment as written.- A build that fails at a step an optimization acted on ends with a
tip:that names the entry
and the one invocation that checks it: a source built as two units that failed, a unit that
imports a BMI kept with the lines of an earlier source that failed, a link that failed where
either is in the graph. A failure of another step says nothing;--quietgives none. The
register states, for each entry that is on and has a key, the value that checks it
(check), and the text is made of it (SPEC-019 §9, docs/26).
Recorded
- A reader for clang's
.pcm, which would keep a BMI when only the function hashes, offsets and
locations differ, is not implemented. Measured with clang 20.1.7 to 23.1.6: the operand that
holds a function's hash is at an index that varies with the declaration and the version, and a
third of the edits change the width of that 32-bit value in the stream, which moves the bit
offsets and three offset tables. Without a model of the declaration records, a reader cannot
tell the field from an interface change (SPEC-019 §8, SPEC-018 §2.2).
v2026.11.24.1
Fixed
mcpp pack --pkg-format <provided format> -o <directory>/writes the distributable together
with the outputs it consumed that lie below its own directory, at their places relative to it.
Before, it wrote the distributable alone, so a web page (--pkg-format web) arrived without its
.js, its.wasmand its deployed files and loaded nothing. Each destination is replaced, and
nothing else in the directory is touched (SPEC-014 §6, v2.8).
v2026.11.23.1
Added
-
On a Linux row,
[target.<selector>.layers] kernel-abistates the kernel headers:
"xim:linux-headers@<version>"(an ecosystem payload, always with its version) or
{ path = "<dir>" }(a header directory withoutmcpp.toml). The statement holds with or
without a platform. Its directories reach every unit and the std module with-isystem, ahead
of the base. The headers in effect are measured by preprocessing<linux/version.h>, and the
report,mcpp why toolchainandlayers[].versiongive the version. A stated version the
measurement contradicts is refused (target-base). So is a prebuilt form on any other layer,
on a row whose system publishes its kernel interface with its C library (macOS, Windows,
FreeBSD), and a second supplier on an openkal row. Which systems take the form, and how the
version is read, are the system row's data (kernel-abi), not the engine's (docs/22)
(mcpp#988). -
A system row and a target row state the interfaces of their kernel-abi layer (
interfaces):
every openkal interface on Linux, macOS, FreeBSD and Windows, fewer on the iOS rows (no program
start) and onwasm32-emscripten.cfg(interface = "...")reads the provider's list, else the
row's, else the system's, so it holds on a row without openkal as well. The same list is in
layers[].interfacesandMCPP_KERNEL_ABI_INTERFACES(mcpp#1005). -
riscv64-linux-muslis apreviewrow: the musl cross payload[email protected]builds it on a
Linux x86_64 machine, andmcpp runstarts its static programs under qemu-user
(xim:[email protected], installed on the first run). Thelinux-musltarget set now
includes it (mcpp#1005). -
The iOS simulator rows (
aarch64-ios-sim,x86_64-ios-sim) state their runner:simctl-run
(xim:[email protected]) chooses a device, boots it and returns the program's
status. It boots a simulator device, so it is enabled on request ([target.aarch64-ios-sim] runner = true, orMCPP_TARGET_<TRIPLE>_RUNNER_ENABLED=true); a project's ownrunnerstands
over it as before.aarch64-ioshas no runner (mcpp#1005). -
mcpp::action::origin(path)names the authored file a generated unit is a transformed copy
of, one of the action's inputs, on asourceaction. The build database gives it as
ide.generated[].origin. A generated unit that declares a module's primary name is a
module-interface. When the authored file is also among the sources, the duplicate-provider
error names the relation (mcpp#1004).emit build-databasestates S1 profile 0.4.0, the version
that defines the field (Sunrisepeak/mcpp-language-server#98). -
A build holds each payload of mcpp's package store that its graph names as a root of the
store (registry/data/roots/mcpp/<store-name>@<version>, xlings' store-roots specification),
renewed by every build of that graph;mcpp toolchain installholds the toolchain it installs,
and a home from before has a root made for every payload it holds, once.mcpp cache gc --dry-runsays what would be collected and removes nothing.
Changed
- openkal-platform 0.32.1 is the default platform of the openkal rows: a program of the firmware
and of DOS starts programs (openkal.process), an image on i686 starts an image
(mcpplibs/openkal-image#46),riscv64-none-muslruns over openkal-opensbi, and
riscv64-linux-muslis served by the platform's hosted arrangement over openkal-linux 0.27.2's
riscv64 layer and openkal-musl 0.30.3, run under qemu-user, where the specification's
conformance suite holds in every observation it makes. - xlings 2026.11.23.1 is the pinned provider, and the handshake requires its
store_roots
feature (protocol 1.19): its collection keeps what a root holds, and its configuration of a
package that stateshost_factsruns again when those host files change (openxlings/xlings#712,
#727). An earlier provider is refused at the handshake, as before for one below the floor.
mcpp builds on mcpplibs.os 0.4.8, which reads a link's own time, and so do the launchers a
pack builds. mcpp cache gccollects the package store after the cache: the provider removes the payloads
nothing references (xlings self clean), and with--older-thanthe roots no build used for
that long are released first. Before, payloads were never collected, andxlings self clean
in mcpp's registry listed the bases, libraries and platform packages projects use (154 payloads,
16 GB, on one home) as unreferenced.- Without a statement, the kernel headers are the base's own (a stated sysroot, a toolchain's own
sysroot such asmusl-gcc's, the host's root), else the version the toolchain's payload
declares. A build under gcc 16.2.0 now compiles against linux-headers 6.18.64, the version it
was built with, instead of the 5.11.1 the home's shared view linked to. The shared view is no
longer read for kernel headers, and mcpp no longer writes kernel headers into it; with neither
answer the build is refused before it compiles and names the statement to write.
A Linux compile names the headers it was decided to use, so a dependency's module interface
cached by an earlier version is compiled once more, then served from the cache.
Fixed
layers,toolsandlinkin a[target.<selector>]table of the project or of
config.tomlwere accepted and had no effect on a row without a platform, with no report even
under--strict. They now complete the graph and reach the link on every row (docs/35);
link.flagsthat reaches no program says so, andcarrier, a form of a platform's image, is a
warning there (platform/carrier).- A row a platform package defines takes the linkage its provider states.
i586-dos-djgpp
(djgpp-platform,linkage = "static") is linked statically, andmcpp packin its default mode
packs its programs: a static program whose format is neither ELF, PE nor Mach-O has no runtime
closure, so none is asked for. A dynamic program of such a format is still refused, naming the
format (mcpp#1007). - The provider of a platform named by a path (
platform = { path = "<dir>" }) is selected. Its
package referencepath:<dir>was read as a payload without a version, so the selection left
it out, and what only the provider states, such as itslinkage, did not apply (mcpp#1007). - A bare-metal row a platform defines is compiled, and its C library verified, for its
clang-triple(else the row), also when the row states nomarchorlink-emulation. Before,
such a row (openkal-musl'sriscv64-none-musl) had no target selection, and the verification
probe refused it. [target.<triple>] runner = trueandrunner = falseare read without the warning
"unsupported key 'runner'": the key check asked the value's type, and a boolean is not an array.- The runtime-closure check expands
$ORIGINat the directory a library was opened in, as the
loader does, not at the target of the link it was reached through. A program whose libraries are
links in a farm, each finding its dependencies beside it (compat.curand under LLVM), was refused
withlibgcc_s.so.1 not foundand ran when started. - On a macOS host, the link of a target other than the host's names the target, as its compile
does.x86_64-macoson Apple silicon linked its x86_64 objects for arm64 and found nomain;
a C program now links and runs under Rosetta. The row staysplanned: the LLVM payload's
libc++ is arm64 only. mcpp packcarries the libraries of what the build deploys beside the program. An object of the
program's format and machine that[runtime] deployormcpp::deployplaces (a plugin loaded
at run time, a helper program, another program under--all-programs) is a root of the runtime
closure as the program is, on ELF, PE, Mach-O and Android. A Qt platform plugin's
libQt6XcbQpa.so.6, which the program does not link, was left out of the package. On ELF a
deployed shared object is preloaded into the program's loader trace and its search path in the
tree becomes the bundle'slib/(docs/10, mcpp#1011).mcpp pack --all-programsonwasm32-emscriptenpacks each program's module beside its
launcher. Before, only the program named after the package had its.wasm(mcpp#1007).- A build ended by a signal while it removed its compiler-run state no longer leaves the
configuration unbuildable. The removal could be cut short and leave a compiler unit without its
prepared transaction, which every later build refused ("compiler unit without prepared
transaction") untilmcpp clean. The state is now renamed out of use before it is removed, and
such a remainder from an earlier version is removed by the next build. - A compiler's registration with its build no longer fails while the build is busy. The answer
was awaited for two seconds and the request then sent again, ten seconds in all, so under load
every retry queued a duplicate and the build failed with "compiler registration channel closed
or timed out" (measured on Windows and macOS CI). The answer is now awaited on the one
connection for as long as the build holds it. mcpp testover several legs names a leg whose build failed, in the leg's section and in the
summary (1 leg did not build;unbuiltin the JSON summary). A build error reported as it
happened left the leg's section empty, and the summary counted no failure, although the run
ended with status 1.
v2026.11.22.1
Added
i686-windows-msvc, the 32-bit x86 Microsoft ABI, is apreviewrow of the target table,
served by the msvc provider asx86_64-windows-msvcis; x86_64 Windows runs its programs
(WOW64). A project needs no[target.i686-windows-msvc]section to build it, and no platform is
looked up for it.--target i686-windowsandx86-windows-msvcselect it; before, they
selected no row. Under clang 23 itsimport stdbuilds at C++20 only (docs/20) (mcpp#996).
Changed
- The framework mcpp scaffolds tests with and suggests where a package has none is mtest 0.11.3
(mtest gatejudges a ledger only for a set that runs every case; the library is
source-compatible with 0.11.2).
Fixed
- A process that finds another refreshing the package index waits for it when an index the
home reads has no packages yet, and judges that as a reader does (<index>/pkgs): the
provider's own index (xim) is one of them, and a directory the other process has made and
not yet filled is absent. Before, only the declared directories were judged, by existence,
so a reader beside a first fetch skipped the refresh and reported no local package index
(mcpp#927, design 2026-11-12 §18 P3). - A request built without a platform refreshed the package index on every build more than the
debounce apart: a miss of the index's platform column refreshed for every row the engine does
not know and everyplannedone, and a custom triple a[target.<triple>]section defines, or
aplannedrow built with a named toolchain, is not refused for want of a platform (12 to 19 s
a build fori686-windows-msvcwith a section). Only a request refused without a platform
refreshes now, judged by the facts the refusal reads;platform = "none"in a table ends the
lookup as--platform nonedoes (SPEC-013 §14, mcpp#996). - Two entries of a project's effective
[indices]that name one location -- a member's beside
its workspace's[workspace.indices], or two in one manifest -- registered the location twice,
and installing any package of it stopped at the provider as ambiguous, naming neither entry.
The build andmcpp index updaterefuse it now, naming both entries, the location and the
remedy (index-location-named-twice, SPEC-004 §9). - An installed GCC's companions (binutils, the Linux headers) were read from the index's current
descriptor of the toolchain, not from the descriptor the payload was installed with. When xim's
gcc recipe moved binutils from 2.42.1 to 2.47, a [email protected] installed beside binutils 2.42.1 was
given no binutils aftermcpp index update, and its builds stopped at "cannot execute 'as'". The
installed descriptor is read first now, then the index's, and the first declaration the store
holds decides: a home that links the payload from an[xlings] upstreamholds the companions
the index names, beside the upstream's descriptor (SPEC toolchain-management §2.9, design
2026-11-21 §3.5). mcpp testcounts a suite run as a case by its cases on the program's line as the summary
does: an mtest program of one suite and seven cases read8 caseson its line and
7 passedin the summary.
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 r...
v2026.11.20.1
Added
main = falsestates that a program's image has no program start: its host enters it only
through the names it exports (mcpp#981, SPEC-004 §14 items 6 to 8). An application on
*-linux-android, which the Java process loads as a shared library, and a program on
wasm32-emscripten, whose page calls the module's exported functions, state it on their row;
the Web row links it with--no-entry, its newlink-without-main(SPEC-016 §2.1). Every
other row refuses it, naming what enters the image there and the remedy. A row's
main = falsereplaces the target's file on that row, which stays the beginning of the other
rows and is no source of that image. Beside it in one table,start,windows_entryand the
entry'scflags,cxxflagsanddefinesare refused, as aremain = trueand the value on
an entry target or in[test]; leavingmainout is still refused.mcpp runrefuses such a
program, and the build record's artifact has"entry": {"main": false}and nolaunch. A
framework no longer ships a translation unit that defines nothing for its applications to
select on these rows.
Changed
[email protected]is the default platform of the rows openkal serves (0.31.0
in 2026.11.19.1). The runner of an ok image (openkal-image 0.7.2) ends a program with the
image's tasks alone, so a debugger continued to the end sees the program end as the image
ended it; it enters an image file an image starts through its own loader, held to its
signature requirements; and a copy of the program, which a library'sforkmakes, ends as
the copy ends itself (mcpplibs/openkal-image#42 to #45). On macOS a request to end that a
context other than the program's first acts on ends the program as the request
(openkal-macos 0.24.1).
Fixed
- A package below the tree of a
pathdependency keeps its own objects (mcpp#979). Since
2026.11.19.1 apathdependency is kept in the global cache under the digest of its tree,
and its entry took every compile unit below its root. A workspace below a repository whose
package its members' build programs import (mcpp-plugins'tests/ws) put both members'
src/main.cppat the one addressobj/src/main.oof the dependency's entry, and a build
from a clean target directory linked one member's object into the other. An entry now holds
the units its key lists, each filed under the longest package root that holds it (SPEC-001
§10.4 item 6). The key of a package named by its commit or its tree changes once, so that no
entry 2026.11.19.1 wrote for agitorpathdependency is read again; the keys of index
packages are unchanged.
v2026.11.19.1
Added
${mcpp.objects:<name>}and${mcpp.objects_rsp:<name>}: a link unit's object list, one
absolute path per line in link order or in response-file quoting, for anartifactor
checkaction; the list and every object in it are inputs of the action (mcpp#959,
SPEC-007 R3.16). A rule that walkedobj/and excluded paths guessed what the engine knows.
mcpp::objects_ofandmcpp::objects_rsp_ofreturn the tokens; build-program protocol 20.${mcpp.self} write --output <file> [--append <file>]... -- <line>...: writes known text and
appended files to one output, only when the bytes differ (mcpp#959). The engine's own
commands are bounded by one criterion, stated in SPEC-007 R3.17: one output, decided by the
declared inputs and the argv, the same on every run.
Changed
- A
pathorgitdependency's build enters the global cache, named by its sources: agit
dependency by its resolved commit, apathdependency by the digest of its tree's content
(<version>+path.<digest>inmcpp cache list). Two projects that reach one library through
path, a clean build, and a CI run that restores$MCPP_HOME/build-cachereuse one entry
while the library's sources are the same, wherever the tree is checked out; before, every
dependent compiled it again (mcpp#974). The project's own trees -- the root, its workspace
members, any package below the project's directory or the directory of the build a build
program or host tool serves -- are built in place. A tree is read again before its entry is
written, and one that changed while it compiled is not stored, which the build reports as a
degradation (build/cache); the entry the same tree left under its previous digest is
removed as the new one is written. A host tool from apathpackage and the build
programs' identity name the tree by the same digest of content, where the tool store used
modification times, so a fresh checkout reuses a tool's entry too. [email protected]is the default platform of the rows openkal serves
(0.29.2 in 2026.11.18.1): the openkal 0.26 family, in which a start is bounded by the
environment alone and one refused for its size isE2BIG, and an observation of a unit
answers whether this process space can observe it (mcpp#958, mcpp#952). The runner of an ok
image, asked to end, names the openkal call each task of the image waits in before it acts.
From 0.30.0 the platform servesi686-svr4-musl, programs of UNIX System V Release 4 on i386
(preview); in 0.31.0 they start other programs.- A package instance has a directory of its own:
obj/<package>/<digest>/and
<bmi dir>/<package>/<digest>/, the digest covering the package's include directories and
flags (its features' defines among them) and the digests of the packages whose modules it
imports (mcpp#953). One directory held one instance, so whenmcpp testor another
selection asked a shared package for other features, each switch between the commands
compiled it again (measured: 43 such edges between two members of a 31-member workspace).
Both instances are now kept, and alternating compiles neither again.instances.tsv
records when a build last used each instance;mcpp clean --staleremoves the instances
no build used within[build] keep_days, keeping those of the plan that wrote the graph,
andmcpp clean --reportlists them. The root package's objects keep their place. A
<package>@<digest>name was measured and not taken: ninja quotes an output that holds
@, and a rule writing"$out.d"then names a file with quotes in it. The objects of the
previous layout are not read again and go withmcpp clean. The build cache keys a
dependency's BMIs by its instance too, so each is compiled once more after the upgrade and
served from the cache from then on. - A compile writes its outputs below an attempt of its own,
<build dir>/.mcpp-attempts/<attempt>/,
and the executor publishes them by rename once the compiler has ended, a module's BMI the
moment it is complete, where the toolchain's outputs are relocatable: GCC 11 and later, and a
clang driver that takes-dumpdir, asked of the driver once (LLVM 17 and later; Apple clang 16
and emcc 6.0.9 take it under numbers of their own), CodeView targets excepted (design 2026-11-19 §10.6,
SPEC-011 §5.1). A compiler that outlives its build writes only its own attempt: the next build
continues at once, and the attempts the interrupted build did not publish are discarded without
being observed.compiler-run-occupiedremains for the toolchains that write in place. Measured
first: a GCC BMI written where its module map names it and then renamed is read by its importers,
and records its imports, not itself; an object's bytes do not depend on its path on ELF, Mach-O
and wasm, and do on CodeView, at-O2without-g. A GCC module unit of the root package is
given a map too, which names each module at its name. The files named after the object (.dwo,
.gcno) keep their names through-dumpdirand-dumpbase; clang's are named
<object stem>.<source stem>.<ext>. - mcpp does not set
VSLANGfor cl.exe: the compiler speaks the language of the user's
environment (VSLANG, else Visual Studio's), where it spoke English whenever the English
resources were installed.VSLANG=1033asks for English (mcpp#970). - Each build program resolves its own
[build-dependencies](mcpp#972, SPEC-004 §12.3,
SPEC-007 R10.7). The target is one resolution, and each build program -- a package's
build.mcppor the program its rules synthesise, a platform's plugin -- is another: a
program loads one version of a package, and two programs do not constrain each other. A
project'sbuild.mcppmay usemcpp.plugins0.22.1 beside a platform plugin that uses
0.26.1, where the two were refused as irreconcilable and the project had to copy the
version the platform used inside. A build program keeps the version it holds while its
requests admit it, and otherwise takes the newest version the target or another program
holds that all its requests admit; the target is resolved first, the layers and
capability defaults its platform adds included, and a program before the programs of the
packages it holds. A build without a conflict therefore keeps its versions and its build
programs' identities. Programs that hold one package at two versions are compiled in two
build programs' graphs,<group>-<digest>, named by those versions; a development
dependency's program does not move the build's programs to another graph under
mcpp test.mcpp.lockrecords a version only build programs hold as an entry of its
own,<name>+b<digest>, whoseprogramslists them; a conflict inside one program is
refused naming the program and every requester. - A platform selected as a series skips a release whose version group a request of the build
does not admit: the build is planned again with the series below it, and the report names
the release and the request (SPEC-013 §14). With no release of the series left the build is
refused (platform-version-group), listing each release and the request that refused it. A
release written exactly, or recorded inmcpp.lock, is taken as written. Before, the
series' newest release decided, and a platform release that moved its group stopped every
project that selected the series. - The launchers
mcpp packwrites (bin/<name>.exe, the single-file launcher) build on
mcpplibs.os0.4.6, mcpp's own release (0.4.4 in 2026.11.18.1);
.github/tools/check_version_pins.shholds the two equal. A launcher is built over the
platform of the rows openkal serves, whose plugin now resolves its build dependencies
apart from the launcher (mcpp#972).
Fixed
- A dependency a merge moves to another version is walked as its first version was: its
dependency tables by the row it is built for, with the features its edges forward, and its
[build-dependencies]as its own build program. The merge's walk read[dependencies]
alone, so the new version's build program was never resolved, its requests lost their
side, and the build program of the version that left stayed in the build and in
mcpp.lock. The requests the version that left made are withdrawn with it. - A capability a package of the target requires (
requireswith[defaults."<capability>"])
is answered by the target's graph: a package only a build program holds answered it, and
the default the package states was not added to the target (SPEC-002 §3.6). - A target row the package index's platform column listed after the local copy of the index
was taken was refused as an unknown target untilmcpp index update: the miss did not reach
the refresh policy. A row the local copy does not list, and that is refused without it (one
the engine does not know, or aplannedone), now refreshes the index as a dependency's miss
does (--offline,[index] auto_refresh, the debounce, one sync per command) and is looked
up again; the refusal says whether the index was refreshed, and why not (mcpp#967). - On a Windows host the
stdmodule of a base package that supplies libstdc++ (the Hurd and
Haiku rows of mcpp-platforms) was precompiled with neither the base'sinclude_dirsnor
-nostdinc++, and stopped at'bits/stdc++.h' file not found: the words that close the
clang driver's own search and name the C++ layer's headers were written only when the
toolchain payload had a driver configuration file to bypass, and the Windows LLVM payload has
none. They follow the layers on every host:-nostdinc++and the base's directories for a
base's C++ layer,-stdlib=naming its library, and-nostdinc++and-nostdlibincfor
the layers the graph supplies; only--no-default-configfollows the file (mcpp#965). - A header edit rebuilt nothing on a Visual Studio without Eng...
v2026.11.18.1
Fixed
- A FreeBSD row built on a Windows host named its program
<name>.exeand its archives
.lib: the engine named artifacts by a branch per system, and a built-in row without a
branch took the host's naming (21 rows of the snapshot: FreeBSD, bare metal, iOS). A
row'sobject-format,exe-suffixandshared-suffixare read from data in three
steps: the row, its system, the convention of the object format (SPEC-016 v1.5). The
built-in rows and a platform's rows share the reading, the engine names no system for
it, and the host's naming answers only for a triple that is neither a row nor of a
system the table states. Measured in mcpp-platforms' CI, where the build finished and
nobin/helloexisted. The names of the other built-in rows are unchanged (the rows
snapshot). - e2e 1116 (a row of another ELF system on a host of any format) ran on Linux hosts only:
its capability,llvm, is a Linux one. It runs wherever the LLVM payload is, and holds
the program to the row's name.
Added
[[platform.system]]acceptsobject-format,exe-suffixandshared-suffix: what
the system's rows share. A row's own statement precedes them. A[[platform.define]]
row may leaveobject-formatunstated: it is then its system's, then ELF. The
built-in table statespefor Windows andmach-ofor macOS this way, and the
suffixes of the ok images and ofwasm32-emscriptenon their rows.
Changed
[email protected]is the default platform of the rows openkal serves
(0.29.1 in 2026.11.17.2). It states the hosts of each runner, so a row the machine starts
itself,x86_64-windows-muslon a Windows host, runs with no runner; a project no
longer states the release to get that.- The FreeBSD rows link on a Windows host with the FreeBSD sysroot packages' revision 2
(xim-pkgindex): FreeBSD's crt objects and static archives hold zlib-compressed debug
sections, which the lld of the Windows LLVM payload, built without zlib, does not read;
revision 2 holds them decompressed. No change of mcpp.
v2026.11.17.2
Added
[profile.<name>] bmi_cutoff = "ignore-locations" | "exact", and
MCPP_BMI_CUTOFFfor one run. With GCC, a line inserted where no recorded
entity follows it changes a BMI's line maps and nothing else; under
ignore-locations, the default, the previous BMI is kept and its importers are
not compiled. Their diagnostics and debug information name the earlier lines
until they are compiled for another reason. A BMI that names
__builtin_LINEor__builtin_source_location(a template's body that reads
its line), and a graph compiled with-fcontracts, are compared exactly;
mcpp packusesexactwhere the profile carries debug information; an
exactrun first removes what an earlier run kept (SPEC-018, mcpp#946 O2,
e2e 1110).- A build states what its BMIs did, one line each: which changed, so that their
importers were compiled again, and which were kept with earlier lines. The
build directory records it inbmi-changes.tsvandbmi-kept.list
(mcpp#946 O6). mcpp publish --tag <template>({version},{name},{namespace};
v{version}without it), andmcpp publish --workspaceor-p <member>
repeated: one archive and one descriptor per member in the workspace's
target/dist, withSHA256SUMS(mcpp#947).- A private module fragment is built as a unit of its own (
private-fragment, on by
default): the text beforemodule :private;is the interface unit and the fragment an
implementation unit of the same module, both naming the file as written through
#line. An edit of the fragment compiles that unit and no importer -- measured with
clang 23.1.3, which otherwise compiles every importer, and with gcc 16.1.0, which does
not build a fragment as written at all. A fragment that reads what is local to the
interface (a macro of the purview, an unnamed namespace, a namespace-scopestatic,
a using-directive) is built as written, with the line that decided it.
[build] private_fragment = "unit" | "as-written",MCPP_PRIVATE_FRAGMENT
(SPEC-019 §5, e2e 1112, 1113). - An object compiled to the bytes it had is kept, and nothing is archived or linked for
it (keep-object; mcpp#946 O5). Comparing an object costs 0.29 ms against 0.8-1.45 s
for a link of mcpp's own programs;--verbosecounts the objects kept. - The previous BMI is held, compared and put back by the executor of the compile edge,
not by a shell fragment of the generated command: a Windows host ends a rebuild at an
unchanged interface as every other host does (mcpp#946 O7, e2e 1111). The internal
mcpp bmi-equalis gone with the fragment that called it. - A build says once, of a module that is one file and that at least five units import,
that its bodies are compiled with its interface and what ends that (SPEC-019 §6,
e2e 1114). MCPP_BUILDOPT=off: the standard build for one invocation -- nothing kept, no other
shape of the graph, sources built as written.mcpp.buildopt(modules/buildopt): everything mcpp does to a build beyond what the
compiler and ninja do, in one package -- the register of its entries with their level,
default and parameter (registry), which previous file of an edge stays (keep, and
keep.gcmfor GCC's BMI format), the shape of the module edges (schedule, from
src/build/schedule/policy.cppm), the units a source is built as (source), and what
a build says of its rebuild (advice). Its README lists the entries.- SPEC-019, build optimizations; chapters 13 (code and project style) and 26 (build
optimizations), in both languages. - SPEC-018, the rebuild of modules.
Changed
- xlings 2026.11.17.2. A symbolic link to a directory extracted on Windows is a
directory link (openxlings/xlings#719), which the NetBSD and OpenBSD sysroots need on a
Windows host. A home reached through a symbolic link is the home it was created as
(openxlings/xlings#720): an install through the link no longer leaves the home's runtime
links and a toolchain's interpreter naming the link. - mcpp pins ninja
1.12.1-mcpp.1: ninja 1.12.1 with the correction of
ninja-build/ninja#2662, where loading a dyndep file while an edge finished
invalidated the iterators of the loops finishing it. On a project of 150
members a workspace test ended with a compiler crash while reading a module,
or with no failed step named. A home that holds another ninja installs the
pin beside it on its next run; where the index it reads does not list the pin,
it takes 1.12.1 and says what that lacks. A build takes the pinned version
from a store that holds several (mcpp#945). - A sibling
pathdependency that states noversionis published under the
sibling's own version; before, it was refused. An archive, its top directory
and its descriptor are named by the package's identity
(mlibs.math-0.1.0.tar.gz,mlibs.math.lua); a package with no namespace is
named as before. A generated descriptor statesnamespaceand a one-segment
name(SPEC-001 §3.2), where it stated the fully-qualified name (mcpp#947). - A platform's runner is taken on the hosts it states (
runner.hosts). On
another host the row runs as a row without a runner: directly where its
system is this machine's, refused for the reach elsewhere, naming the hosts.
A Windows host was asked to enable the Wine runner ofx86_64-windows-musl
(SPEC-013 §10, e2e 1109). - The platform the engine's target table selects is
[email protected].
Fixed
- A target of an ELF system other than Linux built on a macOS or a Windows host took
the host's link line and the host's SDK:x86_64-openbsdandx86_64-freebsdon macOS
linked as Mach-O (ld64.lld: error: unknown argument '--disable-new-dtags'),
x86_64-netbsdcompiled against the macOS SDK (use of undeclared identifier '_CTYPE_BL'), andx86_64-freebsdon Windows linked without its sysroot. A target that
parses is ELF unless it says otherwise, and the macOS SDK is the sysroot of a Mach-O
target only.
Measured after the release in the CI of mcpp-platforms: the NetBSD and OpenBSD rows
build on macOS and Windows hosts and the FreeBSD rows on macOS hosts. On a Windows host
the FreeBSD rows compile and do not link: FreeBSD'scrtend.oandlibgcc.ahold
zlib-compressed debug sections, and the lld of the Windows LLVM payload is built without
zlib. - Members of a workspace share a build directory, and a package's units had another
command line under each member: the include directories of its dependencies came in
the order the root's graph was walked, and its features'-DMCPP_FEATURE_*in the
order they were activated. The set was the same; every member compiled the package
again. Measured on a workspace of 31 members: 753 of 3544 edges differed between two
members by order alone, and a run with no source changed compiled them (command line changed, 2779 times). Usage is carried dependencies first, and the defines are in the
order of their names; the same two members then differ in no edge (mcpp#945, e2e 1115). - An install that comes upon a record of the home with no registration says what it
repaired, whichever install it is: an upgraded home's first is the pinned ninja. - GCC's module scan wrote its output over the unit's object, emptying it on every scan.
The scan writes a file of its own. - With GCC the BMI cutoff had no effect on a host whose time zone is not UTC:
the stamplocaltime:carries the zone's abbreviation, and a stamp was masked
only where it ended inUTC. A touched interface compiled every importer.
The stamp is masked to its terminator (mcpp#946 O1). - A build that ninja ended without naming a failed step states how ninja ended:
its status, the signal, or the NTSTATUS, and whether the ninja it ran is the
pinned one (mcpp#945). --strictnames the key it refuses, where it printed the registry's example
(mcpplibs.cmdline = "0.0.2") for every quoted dependency key.- A
[target.'cfg(...)'] platformwhose selector names a layer (c-abi, ...)
is warned of: a layer is what the selected platform states (SPEC-013 §3.1).