Skip to content

v2026.11.21.1

Choose a tag to compare

@github-actions github-actions released this 21 Nov 20:18
6b90f4d

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 by mcpp pack --pkg-format runs 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, false or "lines". Omitted,
    dev and debug take "lines" while their debug is 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_THRESHOLD overrides 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 test states 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 test keeps a run's builds in builds.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 a Running line; --verbose names the five slowest.

  • Run fixtures (mcpp#293, SPEC-017 O6, P11). A program declares a fixture the run shares and
    its cases name it in uses; mcpp test starts it once, with MTEST_SERVE, before the first
    program that uses it, gives its endpoint as MTEST_FIXTURE_<NAME>, and ends it after the
    last. A fixture that does not become ready is the machine's failure: its users record infra.
    fixtures.ndjson states each fixture's start, readiness and end.

  • A header selects the tests that read it. mcpp test --changed/--since takes 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 surface writes 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.

  • wire features test-steps, test-budget, test-jitter and test-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 registered once
    (mcpp.notice) is said once per project and subject, recorded in target/.mcpp-notices, and said
    again after mcpp clean. --verbose shows a suppressed one marked (noted before); --quiet
    hides notes. The build database's diagnostics carry every notice, with shown: false for 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.sh keeps 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), and mcpp publish refuses 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 from PATH instead of the store, ninja and patchelf, from
    MCPP_ALLOW_HOST_TOOLS, the project, then config.toml. Every host input -- a bootstrap tool,
    a toolchain named by path, glibc@system, a tool found on PATH -- 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-only does and compiles nothing.
    mcpp fetch --to <dir> writes the payloads the build used with their closures, the index
    snapshots and a git bundle of each git clone into a directory described by bundle.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 version mcpp.lock records is
    refused (bundle-older-than-lock); one written on another host or for none of the selected
    targets is warned (bundle-lacks-target).

  • [build] offline in mcpp.toml and config.toml (SPEC-004 §9 item 22), below --offline
    and MCPP_OFFLINE (0 turns 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] archives in config.toml and mcpp.toml, and MCPP_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 in mcpp.toml is 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 json states, 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-installed with a null list, 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, which resolution.json records
    (features, feature_list). --protocol-version lists package-features. A table-form
    feature, and a descriptor's features.<f>, accept description.

Changed

  • A package's instance is a function of its configuration, not of its units (mcpp#986): a
    test build after mcpp build no 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 --case runs within the
    timeout its 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.sh compares 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 --to and
    xlings install --from.
  • CI verifies a tree once (design 2026-11-20 §5.22). A pull request's push runs the pr tier;
    a ci:full run that passes leaves verified-<tree>, a push to main of that tree registers
    the run instead of testing again, and release.yml promotes the four archives that run built
    and tested (release-build.yml) instead of building them. The release pull request passes
    ci:full before 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; --strict refuses 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 by mcpp cache gc, then built at
    another path), its dependents are compiled with it and their entries written again, instead of
    being served and failing with module '<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 --failed reads 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,
    exercise or metric event 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 test that waits for the machine gives its slot back, so the build of a machine test
    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's g++ (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) as 3. A triple's
    vendor field is any word, as GNU config.sub reads it (x86_64-redhat-linux is
    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 and glibc@system was 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 default and a build alike; toolchain default took the
    newest installed version and a build the one the payload manager kept active. A partial version
    mcpp.toml states is recorded in mcpp.lock ([toolchain."xim:gcc@16"]) and read back until
    mcpp update; under --locked a 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 dlopen library is judged from the object that loads it (design 2026-11-21
    §3.10, docs/33, docs/91). The post-link validation and mcpp self doctor looked for it on the
    union of the plan's search paths, the executable's DT_RPATH; an object with DT_RUNPATH, as
    every payload xlings installs carries, searches no DT_RPATH, so xim:slint's libslint_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). The DT_NEEDED walk 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.0 selects the newest key 1.19.0.x (it refused, as no key is
    1.19.0); @=<key> selects one key, @^1.19 is 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 after target/.build-mcpp was 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_bar and foo.bar publish 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, and dep_dir, dep_linkage, dep_bin and xpkg_dir asked
    by the name end the program naming them. The per-build collides on warnings are removed.
  • mcpp why <topic> <subject> --format json reports a refusal whose branch has no token as
    other, as mcpp why toolchain does; it reported none beside refused. 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 of mcpp toolchain's
    argument errors, mcpp toolchain list and mcpp self config with 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 = ... } (or ld) compiles and links with
    that binutils, as its std module's compile already did (mcpp#755). The compile and link lines
    took their -B from 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 .base64 directive (binutils 2.42). Both take the directory from one function now.
  • A compiler whose baked sysroot is the building home's subos/current links against this home's
    C library, as one whose baked sysroot is subos/default does. gcc 16.2.0 revision 1 names
    subos/current; the remap recognised subos/default alone, and the link of a program whose
    environment no package describes found no C library.
  • mcpp index list names the registries mcpp index add added. 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_dirs expanded, as the
    compile steps expand them: a relative entry is a glob, and */include names the directories it
    matches. It reached llvm-windres as 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 whose include_dirs name an archive's wrap layer
    failed so on Windows, among them compat.protobuf's protoc host tool, which gRPC's code
    generation builds.