From d7e4e7ac3d288f03e371dcf0ed501d96899f7683 Mon Sep 17 00:00:00 2001 From: Partouf Date: Tue, 6 Nov 2018 21:22:14 +0100 Subject: [PATCH] make zig executable --- lib/compilers/zig.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'