From 513a52e67882d6cb50976f86e2da11b0114fff46 Mon Sep 17 00:00:00 2001 From: elpekenin Date: Sun, 24 Nov 2024 22:22:06 +0100 Subject: [PATCH] tiny fix for 0.14 --- src/libc.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libc.zig b/src/libc.zig index 1133ff6..62e9fe7 100644 --- a/src/libc.zig +++ b/src/libc.zig @@ -80,7 +80,8 @@ fn fallback_panic_handler(msg_ptr: [*]const u8, msg_len: usize) callconv(.C) nor @trap(); } comptime { - @export(fallback_panic_handler, std.builtin.ExportOptions{ + const ptr = &fallback_panic_handler; + @export(ptr, std.builtin.ExportOptions{ .name = "foundation_libc_panic_handler", .linkage = .weak, .visibility = .default,