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
c_import of <float.h> fails: clang 22's __float_*.h parts are not embedded #1198
use c_import("float.h") // or CoreFoundation/CoreFoundation.h, or anything that reaches <float.h>
fn main: print("ok")
error: failed to compile C header snippet: float.h: '__float_header_macro.h' file not found
Cause: build/clang_resource.wcr_should_embed embeds a curated subset of clang's builtin headers. clang 22 split float.h into __float_float.h, __float_header_macro.h, __float_infinity_nan.h; the rule knows the __stddef_ / __stdarg_ prefixes but not __float_, so float.h is embedded and its parts are not. Scanning every embedded header's #include lines against the SDK's include dir finds exactly those three and nothing else.
The tool that stayed silent: the embed action never checked that the subset is closed under inclusion. Fix adds the prefix and makes the action fail with embedded clang header set is not closed: float.h includes __float_header_macro.h (verified firing under the pinned seed, then passing).
Activity
Embed clang 22's __float_*.h and refuse an unclosed header subset
Key the materialized clang header cache by its contents
Embed clang 22's __float_*.h and refuse an unclosed header subset
Key the materialized clang header cache by its contents