Skip to content

Commit 9fca8e7

Browse files
speak-agentclaude
andcommitted
the probe fix, read from the probe's own cache rather than from a log
After a freestanding build with a [c-abi] graph, the newest -dM dump in ~/.mcpp/build-cache/v1/cenv-probe reports __riscv, no __linux__, and a 4-byte wchar_t. The older dumps beside it report the opposite and are correct: those are hosted Linux targets, where the host is the target. What distinguishes them is the first line, and a freestanding probe used to look like the second. Co-authored-by: Claude Code <noreply@anthropic.com>
1 parent fec98c1 commit 9fca8e7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.agents/docs/2026-09-20-ecosystem-execution-plan.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,17 @@ libpng、re2、lua(经 capi-lua)。全部是按 `_WIN32` / `__MINGW32__` 选分
144144
需要 `openkal.space` 的消费者在 Windows 上被**解析期**拒绝,在 Linux 上构建。
145145
一个给环境类别起的名字会让这两个实现看起来一样——这正是 SPEC §3.3 撤回 `hosted`
146146
的理由,而这里是它的第一个实例。
147+
148+
### 4.6 探针修复的产物级读数
149+
150+
判据不取自日志而取自探针自己的缓存。在本机用新引擎为 `riscv64-none-elf` 构建一个声明了
151+
`[c-abi]` 的图之后,`~/.mcpp/build-cache/v1/cenv-probe/` 里最新的那份 `-dM` dump:
152+
153+
```
154+
d9d24a49fc6f76c2.dm __riscv=1 __linux__=0 __SIZEOF_WCHAR_T__=4
155+
```
156+
157+
同目录下更早的几份是 hosted Linux 目标的,读数为 `__riscv=0 __linux__=1` —— 那是
158+
**正确的**,因为那里宿主就是目标。区分两者的是第一行:freestanding 的探针此前也长这样。
159+
160+
这条读数是「探针量的是它要核对的那个目标」这句话的产物级证据,不是日志级的。

0 commit comments

Comments
 (0)