mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
update zig to 0.11 and update build script
Also update memcpy to avoid recursive memcpy due to optimizations.
This commit is contained in:
parent
0aaf8ebf8a
commit
2e2e609547
18 changed files with 535 additions and 507 deletions
|
@ -1,6 +1,5 @@
|
|||
const std = @import("std");
|
||||
const RocStr = @import("str.zig").RocStr;
|
||||
const always_inline = std.builtin.CallOptions.Modifier.always_inline;
|
||||
|
||||
// Signals to the host that the program has panicked
|
||||
extern fn roc_panic(msg: *const RocStr, tag_id: u32) callconv(.C) void;
|
||||
|
@ -12,5 +11,5 @@ pub fn panic_help(msg: []const u8, tag_id: u32) void {
|
|||
|
||||
// must export this explicitly because right now it is not used from zig code
|
||||
pub fn panic(msg: *const RocStr, alignment: u32) callconv(.C) void {
|
||||
return @call(.{ .modifier = always_inline }, roc_panic, .{ msg, alignment });
|
||||
return roc_panic(msg, alignment);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue