fix: windows build with zig 0.14.0-dev.3039
This commit is contained in:
parent
53045123c6
commit
d503f3c197
5 changed files with 44 additions and 10 deletions
|
@ -32,7 +32,11 @@ pub const std_options: std.Options = .{
|
|||
|
||||
const renderer = @import("renderer");
|
||||
|
||||
pub const panic = if (@hasDecl(renderer, "panic")) renderer.panic else std.builtin.default_panic;
|
||||
pub const panic = if (@hasDecl(renderer, "panic")) renderer.panic else default_panic;
|
||||
|
||||
fn default_panic(msg: []const u8, _: ?*std.builtin.StackTrace, ret_addr: ?usize) noreturn {
|
||||
return std.debug.defaultPanic(msg, ret_addr);
|
||||
}
|
||||
|
||||
pub fn main() anyerror!void {
|
||||
if (builtin.os.tag == .linux) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue