stage1: update zig1.wasm

Compiler needs a subset of the legalization features enabled.
This commit is contained in:
Jacob Young 2025-06-15 11:55:57 -04:00
parent 6e72026e3b
commit 13392ad33f
2 changed files with 9 additions and 0 deletions

View File

@ -272,6 +272,15 @@
#define zig_linksection_fn zig_linksection #define zig_linksection_fn zig_linksection
#endif #endif
#if zig_has_attribute(visibility)
#define zig_visibility(name) __attribute__((visibility(#name)))
#else
#define zig_visibility(name) zig_visibility_##name
#define zig_visibility_default
#define zig_visibility_hidden zig_visibility_hidden_unavailable
#define zig_visibility_protected zig_visibility_protected_unavailable
#endif
#if zig_has_builtin(unreachable) || defined(zig_gcc) || defined(zig_tinyc) #if zig_has_builtin(unreachable) || defined(zig_gcc) || defined(zig_tinyc)
#define zig_unreachable() __builtin_unreachable() #define zig_unreachable() __builtin_unreachable()
#elif defined(zig_msvc) #elif defined(zig_msvc)

Binary file not shown.