mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 06:38:03 -06:00
make zig executable
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user