|
4 | 4 | > Each `## [<version>]` section is that release's notes. Entries are written in English |
5 | 5 | > from 2026.9.28.3 on; earlier entries remain as written. |
6 | 6 |
|
| 7 | +## [2026.11.27.1] - 2026-11-27 |
| 8 | + |
| 9 | +### Changed |
| 10 | + |
| 11 | +- A dependency's shared library is named by its package. Its file and its SONAME take the |
| 12 | + package's qualified name, made a file name by the function that names the package's object |
| 13 | + directory: `compat.sdl3`'s target `sdl3` builds `libcompat_sdl3.so`, and a target named |
| 14 | + otherwise than its package follows the package's name (`libcompat_sdl3_extra.so`). A package of |
| 15 | + the default namespace is spelled by its bare name: a target named as its package keeps its |
| 16 | + library's name, and one named otherwise follows the package's name (`libdep_depshared.so`). The |
| 17 | + root package and a selected member keep their target's name, and a target that states `soname` |
| 18 | + is loaded by the name it states. Two packages whose libraries would be loaded by one name are |
| 19 | + refused at planning with `[soname-collision]`, naming both. Before, `compat.sdl3` and |
| 20 | + `mcpplibs.mwrap.sdl3` both made `libsdl3.so`. A script outside mcpp that names a dependency's |
| 21 | + shared library by its file name follows the change (docs/04, mcpp#975). |
| 22 | +- The `PATH` of a build program, a test and the program of `mcpp run` is composed by one |
| 23 | + function, the same on every host: the directories of the tools the graph states, then the |
| 24 | + declared environment's `bin` when the project declares one, then the `PATH` mcpp was started |
| 25 | + with. A build program that calls a tool the graph states by its bare name gets the stated one, |
| 26 | + and a test finds a tool stated with `when = "run"` on Windows and macOS as on Linux. Before, a |
| 27 | + build program's `PATH` had no stated tool, and a test's held the toolchain's environment `bin` |
| 28 | + on Linux only (docs/23, mcpp#926). |
| 29 | +- `mcpp add` writes the form the table already uses for the namespace: the short key in an |
| 30 | + existing `[dependencies.<ns>]` section, else the dotted key `<ns>.<name>` in `[dependencies]`; |
| 31 | + a package of the default namespace is a bare key. Before, it could write a |
| 32 | + `[dependencies.<ns>]` header after dotted keys had defined that table, which TOML 1.0 and every |
| 33 | + strict reader refuse. `mcpp remove` takes `--dev` and `--build`, as `mcpp add` does |
| 34 | + (docs/05, mcpp#964). |
| 35 | +- The code text of a source, its text with comments and literals blanked, has one reader, shared |
| 36 | + by the module scanner, the build optimizations and the check of module names a package |
| 37 | + declares. An `export module` inside a raw string literal or a comment no longer declares a |
| 38 | + module (mcpp#963). |
| 39 | +- The cache entry of a `path` dependency or a `path` host tool records every tree that uses it, |
| 40 | + one file per tree under the entry's `users/`. A tree that writes or hits the entry of an edited |
| 41 | + content withdraws itself from the entries of its earlier contents, and an entry is removed when |
| 42 | + no tree uses it. Before, an edit in one checkout removed the entry another checkout's plan named. The |
| 43 | + `source` record of an earlier mcpp is read as the first user and is not written, so an earlier |
| 44 | + mcpp that shares the home removes none of the new entries (docs/09, mcpp#1025). |
| 45 | +- The home keeps the spelling it is given: a home named through a symbolic link is used under |
| 46 | + that name in every path mcpp opens, starts or prints, and its physical path is used only to |
| 47 | + decide whether two paths are one object. A comparison that cannot be made is made on the |
| 48 | + spelling and reported as degraded. A check in CI holds the physical-path calls outside the |
| 49 | + identity function to a baseline that only shrinks (docs/25, mcpp#1024). |
| 50 | +- `mcpp publish` normalizes every dependency table, the tables under `[target.<selector>]` and |
| 51 | + each `[feature-deps.<feature>]` included, through one enumeration of a manifest's dependency |
| 52 | + tables, which the loader and the manifest editor also walk. A `path` dependency of a feature is |
| 53 | + published by its version, and so is a workspace member that lies inside the package's directory |
| 54 | + (mcpp#962). |
| 55 | +- The `host-module-in-dependencies` warning names the two commands that move the entry: |
| 56 | + `mcpp remove <package>`, then `mcpp add --build <package>@<version>` (mcpp#993). |
| 57 | +- mcpp's Windows images reserve 8 MiB of stack for the main thread, the size Linux and macOS give |
| 58 | + it. A command nests whole builds in one process: `mcpp pack` prepares the program, a host tool |
| 59 | + its platform names and that tool's build programs. Measured on the openkal canary, this held |
| 60 | + about 1 MiB of frames, the whole of a PE image's default reserve. |
| 61 | + |
| 62 | +### Added |
| 63 | + |
| 64 | +- An `import` inside a conditional block (`#if`, `#ifdef`, ...) is read by the compiler's |
| 65 | + dependency scan with the unit's own compile words, on GCC and on Clang (`clang-scan-deps`), and |
| 66 | + the unit imports what the condition selects. Before, the lexical scan refused the unit. A module |
| 67 | + declaration in a conditional block is read the same way; header units are still refused, and so |
| 68 | + is such a unit under MSVC, which has no scan at planning (docs/04, mcpp#1026). |
| 69 | +- `mcpp add --build` writes the dependency into `[build-dependencies]` (docs/05, mcpp#993). |
| 70 | +- `[profile.<name>] dialect_cxxflags`, with the meaning of `[build] dialect_cxxflags` and appended |
| 71 | + after it: it reaches every unit of the graph and the `std` module. A workspace's profile takes |
| 72 | + it too. SPEC-004 §9 states that a profile's `cflags` and `cxxflags` reach the root package and |
| 73 | + the selected members, and its `opt`, `debug`, `ndebug`, `dialect_cxxflags` and `ldflags` the |
| 74 | + whole graph. An unknown key in a profile is reported (docs/04, mcpp#1025). |
| 75 | +- Shell completion. `mcpp self completion [bash|zsh|fish|powershell]` writes into |
| 76 | + `<home>/config/shell/` a script that passes the words before the cursor to `mcpp __complete`, |
| 77 | + and prints the line that loads it. mcpp answers from its command tree, with the profiles, |
| 78 | + members and dependencies of the manifest in the directory, its target rows, the installed |
| 79 | + toolchains and the packages of the local index copies; a completion reads only what is on disk |
| 80 | + and initializes no home. The engine is mcpplibs.cmdline 0.0.6 (docs/01, mcpp#794). |
| 81 | +- A host tool's store entry holds, beside the executable, each shared object its link read from |
| 82 | + its own build, and lists them; an entry without them is built again. Before, a tool that linked |
| 83 | + a library of its graph shared failed to start from the store (docs/30, mcpp#535). |
| 84 | +- The file a link reads for a `DT_NEEDED` is the file the loader loads. After an ELF image is |
| 85 | + linked, the name is resolved over the image's search path and compared with the shared object |
| 86 | + the link recorded reading (`--dependency-file`), as an object and then by content; another file |
| 87 | + is refused with `[runtime-closure]`, naming both. A name nothing answers at load time carries |
| 88 | + the same token. Under `MCPP_ALLOW_HOST_LIBS` a difference is inconclusive (docs/04, mcpp#537). |
| 89 | +- An ELF shared image that asks for the static TLS block (`DF_STATIC_TLS`) with a TLS segment |
| 90 | + larger than glibc serves an image loaded by `dlopen` (512 bytes) is reported; when its exact |
| 91 | + `exports` say a host enters it by name, it is refused with `[static-tls-image]` (docs/04, |
| 92 | + mcpp#907). |
| 93 | +- A graph that supplies the C library and no C++ ABI, whose units import the `std` module, is |
| 94 | + refused at planning with `[layer-requirement]` and two remedies, a dependency that provides |
| 95 | + `mcpp:c++-abi` or `[build] cxx_runtime = "host-coupled"`. Before, the `std` module's precompile |
| 96 | + failed inside the toolchain's headers (docs/22, SPEC-002 §3.11, mcpp#898). |
| 97 | +- Before `mcpp run` and `mcpp test` execute an artefact whose `#!` line names a program that is |
| 98 | + not on its `PATH`, a note names the program and gives the commands that install a toolchain |
| 99 | + descriptor, with the toolchain the build used (docs/20, mcpp#621). |
| 100 | +- A library a program finds only in the default environment's union view, for a project that |
| 101 | + declares no environment, is reported, naming the program and the library (docs/23). |
| 102 | +- The features of `examples/11-features` state their descriptions, and a test holds that a |
| 103 | + package's descriptions are the same from its manifest, an inline descriptor and an installed |
| 104 | + payload (mcpp#1018). |
| 105 | + |
| 106 | +### Deprecated |
| 107 | + |
| 108 | +- `reopened-dotted-table` (until 2027.3): a `[header]` that reopens a table dotted keys defined. |
| 109 | + The two are read together and reported; the next `mcpp add` to that table writes the header's |
| 110 | + entries as dotted keys (docs/51). |
| 111 | +- `implicit-default-environment` (until 2027.3): for a project that declares no environment, the |
| 112 | + default environment's union view on the run-time search path and the link's `--sysroot`, and |
| 113 | + its `bin` on a test's `PATH` outside Windows (docs/23, docs/51). |
| 114 | +- `unmatched-exact-export` (until 2027.3): an exact `exports` name the shared image does not |
| 115 | + define, which was dropped from the published set without a word; it is reported (docs/04, |
| 116 | + docs/51). |
| 117 | + |
| 118 | +### Fixed |
| 119 | + |
| 120 | +- A build with no edit after an edit of a module compiles nothing under clang. clang names every |
| 121 | + BMI an importer read by the absolute path it finds it through (`-fprebuilt-module-path`), and the |
| 122 | + graph names the BMI below the build directory; ninja held the two spellings as two files, so the |
| 123 | + importer of an importer whose BMI an edit changed was compiled by the next build, which had no |
| 124 | + edit. The edge that writes a BMI now states the absolute spelling as an implicit output too |
| 125 | + (SPEC-018 §1 item 6, mcpp#1015). |
| 126 | +- `examples/11-features/greeter` stated `opt_level` in a profile, which is no profile key, and |
| 127 | + the profile built without it; it states `opt`. |
| 128 | +- A build after a failed build that stated `MCPP_PRIVATE_FRAGMENT`, `MCPP_BMI_SCHEDULE` or |
| 129 | + `MCPP_BUILDOPT` is the build before it. In 2026.11.26.1 the statement was part of the record of |
| 130 | + a build, which a build writes when it succeeds: a build that stated one and failed left its |
| 131 | + graph under the record of the build before, and a plain build then replayed that graph and |
| 132 | + failed the same way until a source or the manifest was edited. On GCC that is the invocation a |
| 133 | + failure's `tip:` gives (`MCPP_PRIVATE_FRAGMENT=conservative mcpp build`), which fails where the |
| 134 | + purview before the fragment holds a condition. The statement is now part of the request the |
| 135 | + graph itself names (`request=` on the first line of `build.ninja`), which every fast path |
| 136 | + compares before replaying it (SPEC-019 §9 item 5). |
| 137 | + |
7 | 138 | ## [2026.11.26.1] - 2026-11-26 |
8 | 139 |
|
9 | 140 | ### Changed |
|
0 commit comments