Commit 52c9da5
committed
fix(toolchain): clang cfg gains the C-header axis (v0.0.84)
fixup_clang_cfg's regenerated cfg covered the link axis (-B/-L/loader/
rpath) but omitted the C library and kernel headers — a direct
`clang hello.c` only worked when the HOST happened to ship /usr/include
(silently non-hermetic; hard failure on header-less machines). The cfg
now carries -isystem for the glibc payload headers and the linux-headers
payload, ordered AFTER the libc++ block (its C-header wrappers reach libc
via #include_next) — byte-consistent with what xim-pkgindex's llvm.lua
install hook generates, so the two cfg writers can no longer diverge.
The C driver cfg (clang.cfg) gets the headers directly; the C++ cfg gets
them after the libc++ includes. Fixup rev bumped to hermetic-3 so existing
payloads re-converge on their next build. Verified with host headers
masked (--sysroot=<empty dir>): cfg-driven bare clang and clang++ both
compile and run; negative control without the payload headers fails as
expected. mcpp's own builds are unaffected (the link model has always
supplied its own header flags).1 parent 19e2070 commit 52c9da5
4 files changed
Lines changed: 46 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
7 | 22 | | |
8 | 23 | | |
9 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
259 | 281 | | |
260 | 282 | | |
261 | 283 | | |
| |||
264 | 286 | | |
265 | 287 | | |
266 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
267 | 292 | | |
268 | 293 | | |
269 | 294 | | |
| |||
281 | 306 | | |
282 | 307 | | |
283 | 308 | | |
284 | | - | |
| 309 | + | |
285 | 310 | | |
286 | 311 | | |
287 | 312 | | |
| |||
376 | 401 | | |
377 | 402 | | |
378 | 403 | | |
379 | | - | |
| 404 | + | |
380 | 405 | | |
381 | 406 | | |
382 | 407 | | |
| |||
0 commit comments