diff --git a/lib/compilers/zig.js b/lib/compilers/zig.js index 3b6380a1f..52e67c8b0 100644 --- a/lib/compilers/zig.js +++ b/lib/compilers/zig.js @@ -36,14 +36,14 @@ class ZigCompiler extends BaseCompiler { if (this.compiler.semver === '0.2.0') { source += '\n'; source += 'extern fn zig_panic() noreturn;\n'; - source += 'pub inline fn panic(msg: []const u8, error_return_trace: ' + + source += 'pub fn panic(msg: []const u8, error_return_trace: ' + '?&@import("builtin").StackTrace) noreturn {\n'; source += ' zig_panic();\n'; source += '}\n'; } else { source += '\n'; source += 'extern fn zig_panic() noreturn;\n'; - source += 'pub inline fn panic(msg: []const u8, error_return_trace: ' + + source += 'pub fn panic(msg: []const u8, error_return_trace: ' + '?*@import("builtin").StackTrace) noreturn {\n'; source += ' zig_panic();\n'; source += '}\n'; @@ -56,7 +56,7 @@ class ZigCompiler extends BaseCompiler { let options; if (filters.execute) { options = [ - 'build', + 'build-exe', '--cache-dir', path.dirname(outputFilename), '--output', this.filename(outputFilename), '--output-h', '/dev/null'