You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cdf43d3
Browse filesBrowse the repository at this point in the historyBrowse files
feat: the kernel headers are the kernel-abi layer's, platform keys hold on every row, a row states its interfaces, a generated unit names its origin
- [target.<selector>.layers] kernel-abi takes "xim:linux-headers@<version>" or { path } on a
system whose row states how its kernel headers are measured; the headers are decided once after
the target side, measured by preprocessing, wired ahead of the base with -isystem, and reported
(layers[].version). Without a statement the base's own headers answer, then the toolchain's
declaration; the shared view is no longer read or written (mcpp#988).
- The project's and the machine's [target.<selector>] layers, tools and link take effect on a row
without a platform; carrier there is a warning.
- System and target rows state interfaces; cfg(interface = ...) and layers[].interfaces read the
provider's list, else the row's, else the system's (mcpp#1005).
- mcpp::action::origin() and ide.generated[].origin; a generated unit that declares a module's
primary name is its interface (mcpp#1004).
@@ -215,6 +216,7 @@ Records that declare one. Everything else is listed by date below.
215
216
### 2026-11
216
217
217
218
-[测试与 CI 一轮的收尾:平台列未命中的刷新条件(mcpp#996)、`i686-windows-msvc` 行、工作区索引与引号键的迁移、索引的全量验证](2026-11-22-test-round-wrap-up-plan.md) — active
219
+
-[生态级方案:内核接口的供给与能力,派生状态的核对,存储的引用](2026-11-22-kernel-interface-and-derived-state-ecosystem-design.md) — active
218
220
-[包的特性作为机器可读的回答:一个目录项,两种来源,三种状态(mcpp#992)](2026-11-21-package-features-query-design.md) — active
219
221
-[离线、宿主输入与工具链的缺省:按内容取归档的来源、项目的取齐、宿主输入的声明、工具链的解析与锁、缺省版本的规则(mcpp#988、#989、#990)](2026-11-21-offline-host-inputs-and-toolchain-defaults-design.md) — active
220
222
-[构建程序的输入由观测给出:编译读到的文件、三道闸门的同一份记录、头文件的用法提示、提示的统一机制、契约中名字的歧义(mcpp#991、#852)](2026-11-21-build-program-observed-inputs-design.md) — active
|`layers[]`| the five target-side layers: `{layer, interface, impl, origin, subset}`|
596
+
|`layers[]`| the five target-side layers: `{layer, interface, impl, origin, subset, version, interfaces}`; `version` is the kernel-abi layer's measured version where the system publishes its kernel headers as a package (empty otherwise), `interfaces` the layer's interfaces (`null`: unstated, every one) *(@RELEASE@+)*|
597
597
598
598
**`compiler.chosenBy` answers "why this one".** `{origin, requiredBy,
599
599
replaced}` — `origin` is the same phrase the build's status line uses
@@ -657,7 +657,7 @@ a program classifying the outcome reads `reason`:
657
657
|`payload-request`| a build program asked for a payload no manifest of this build declares `provision = "on-request"`, or asked again in three consecutive runs *(2026.10.1.3+)*|
658
658
|`lto-export-discovery`| a PE shared library whose exports are discovered would be compiled by cl.exe into `/GL` objects, which hold no symbol table: `windows_auto_export = true` stated under `lto = true`, or `/GL` written into the flags of a package it links *(2026.10.5.2+)*|
659
659
|`local-toolchain`| a toolchain named by path, or stated by a build program's toolchain phase, cannot be used: no driver, a contradicting family, a missing tool, or `spec` stated with a key only a toolchain named by path has *(2026.10.1.3+)*|
660
-
|`target-base`| the target base (`sysroot`) cannot serve this build: a spelling the row does not take, a path that does not exist, a directory that supplies no C library, a C library older than the compiler's runtime requires, a native base without its loader, or a second C library supplier in the graph *(2026.10.24.1+)*|
660
+
|`target-base`| the target base (`sysroot`) cannot serve this build: a spelling the row does not take, a path that does not exist, a directory that supplies no C library, a C library older than the compiler's runtime requires, a native base without its loader, or a second C library supplier in the graph *(2026.10.24.1+)*; the kernel headers: a prebuilt `layers` form on a row or layer that takes none, a payload without the target architecture's headers, no headers to answer the default, or a measurement that contradicts the statement *(@RELEASE@+)*|
661
661
|`convention-unreplaced`| the convention was overridden and nothing replaced it |
662
662
|`os-mismatch`| the requested and resolved triples name different systems |
663
663
|`layer-requirement`| a package requires a layer the resolution did not give it |
@@ -753,6 +753,9 @@ action, so such a file does not exist yet in the directory the document names.
753
753
Each entry gives the path a `mcpp build` of the same selection writes
754
754
(`build-path`) and the step that writes it, so that an editor can say "generated,
755
755
build once" instead of reporting a missing header.
756
+
Since @RELEASE@ an entry of `kind``source` also carries `origin` when its
757
+
action states one with `.origin(...)` ([30](30-build-mcpp.md)): the authored
758
+
file the generated unit is a transformed copy of (S1 0.4.0 section 7.2).
756
759
757
760
`emit` plans every selected member on its own (#699 item 1): one member's
758
761
planning failure does not cost its siblings'. Outside a project, or when
ToolchainLinkModel (single resolver for the C-library axis)
33
33
├──► flags.cppm (main build compile/link flags)
@@ -77,7 +77,7 @@ is resolved/auto-installed via the xlings backend into the sandbox
77
77
|---|---|
78
78
|`targetTriple`|`<compiler> -dumpmachine`|
79
79
|`sysroot`|`-print-sysroot` (validated: must actually carry libc headers), with a remap fallback for xlings-built GCC whose baked build-time path doesn't exist locally |
80
-
|`payloadPaths`| the resolved runtime binding (§2.1) names the glibc payload exactly; linux-headers is still discovered as a sibling. No binding ⇒ no payload-first, by design |
80
+
|`payloadPaths`| the resolved runtime binding (§2.1) names the glibc payload exactly. No binding ⇒ no payload-first, by design. The kernel headers are decided after the target side (`base.kernel`, the kernel-abi layer) and wired ahead of the base in every mode|
81
81
| runtime dirs | toolchain-private lib dirs for produced binaries' `-L`/`-rpath`|
82
82
83
83
Note the probe deliberately does **not** mine the clang cfg for `--sysroot`
0 commit comments