diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-04-26 18:43:41 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-28 13:29:39 -0700 |
| commit | fa200ca0cad2705bad40eb723dedf4e3bf11f2ff (patch) | |
| tree | 7926cbea1499e0affe930bf6d7455dc24adf014e | |
| parent | 85ffb8f18f10506d03ac7b0a68288c855b828a2e (diff) | |
| download | zig-fa200ca0cad2705bad40eb723dedf4e3bf11f2ff.tar.gz zig-fa200ca0cad2705bad40eb723dedf4e3bf11f2ff.zip | |
update zig1.wasm
This is needed because bug fixes to the C backend are required in order
to actually update the standard library and compiler sources to use the
new `@memcpy` and `@memset` semantics.
| -rw-r--r-- | stage1/zig.h | 8 | ||||
| -rw-r--r-- | stage1/zig1.wasm | bin | 2440105 -> 2454149 bytes |
2 files changed, 8 insertions, 0 deletions
diff --git a/stage1/zig.h b/stage1/zig.h index f73dfb72ef..34407d8cda 100644 --- a/stage1/zig.h +++ b/stage1/zig.h @@ -188,6 +188,14 @@ typedef char bool; #define zig_export(sig, symbol, name) __asm(name " = " symbol) #endif +#if zig_has_attribute(weak) || defined(zig_gnuc) +#define zig_weak_linkage __attribute__((weak)) +#elif _MSC_VER +#define zig_weak_linkage __declspec(selectany) +#else +#define zig_weak_linkage zig_weak_linkage_unavailable +#endif + #if zig_has_builtin(trap) #define zig_trap() __builtin_trap() #elif _MSC_VER && (_M_IX86 || _M_X64) diff --git a/stage1/zig1.wasm b/stage1/zig1.wasm Binary files differindex 4c3b17230f..b00227e45d 100644 --- a/stage1/zig1.wasm +++ b/stage1/zig1.wasm |
