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
fix(toolchain): clang cfg gains the C-header axis (v0.0.84) (#198)
* 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).
* docs: normalize phrasing — 'direct driver invocation' instead of informal wording
0 commit comments