Commit 2cb595d
committed
fix: 判据改用 MCPP_TARGET_REQUESTED —— MCPP_TARGET 从不为空
ld64.lld: error: undefined symbol: wcslen / strtoul / __error
(本包自己的 conformance,本机 macOS)
MCPP_TARGET 在没给 --target 时用宿主填上,所以「非空」恒真,于是这个 stub 上了一条
**本机**链接线,而那里 SDK 完整的那份本来就在,我们这份把它遮蔽了。
MCPP_TARGET_REQUESTED 是同一个值未被填充的形态:恰好在这是一次普通本机构建时为空。
⭐ 太旧而不设这个变量的 mcpp 会读到空,而那对它是正确答案:它没有「目标侧来自图」
这回事,系统永远在链接线上。
本机双向复验:交叉到 aarch64-macos 供给 stub 并产出;用已发布的 2026.8.19.1 走本机
路径构建本包,不供给,通过。1 parent 2468170 commit 2cb595d
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
| |||
0 commit comments