diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-04-26 09:24:37 -0500 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2022-04-26 09:24:37 -0500 |
commit | 7bb57642a3d32e73e45e0c324ff19d13a18f8602 (patch) | |
tree | 68ae77f353815cc91f3d3c860bdbc0c3f42b0035 /lib/compilers/zig.js | |
parent | 5e5ee98be7e3c5a7fae094619a447158675d3778 (diff) | |
download | compiler-explorer-7bb57642a3d32e73e45e0c324ff19d13a18f8602.tar.gz compiler-explorer-7bb57642a3d32e73e45e0c324ff19d13a18f8602.zip |
Lint fixesgh-2559
Diffstat (limited to 'lib/compilers/zig.js')
-rw-r--r-- | lib/compilers/zig.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/compilers/zig.js b/lib/compilers/zig.js index 3903f7aa9..1a9d0512d 100644 --- a/lib/compilers/zig.js +++ b/lib/compilers/zig.js @@ -59,8 +59,7 @@ export class ZigCompiler extends BaseCompiler { if (Semver.eq(asSafeVer(this.compiler.semver), '0.2.0', true)) { source += '\n'; source += 'extern fn zig_panic() noreturn;\n'; - source += - 'pub fn panic(msg: []const u8, error_return_trace: ?&@import("builtin").StackTrace) noreturn {\n'; + source += 'pub fn panic(msg: []const u8, error_return_trace: ?&@import("builtin").StackTrace) noreturn {\n'; source += ' zig_panic();\n'; source += '}\n'; } else if ( @@ -69,8 +68,7 @@ export class ZigCompiler extends BaseCompiler { ) { source += '\n'; source += 'extern fn zig_panic() noreturn;\n'; - source += - 'pub fn panic(msg: []const u8, error_return_trace: ?*@import("builtin").StackTrace) noreturn {\n'; + source += 'pub fn panic(msg: []const u8, error_return_trace: ?*@import("builtin").StackTrace) noreturn {\n'; source += ' zig_panic();\n'; source += '}\n'; } else { @@ -119,7 +117,7 @@ export class ZigCompiler extends BaseCompiler { '--output', this.filename(outputFilename), '--output-h', - '/dev/null' + '/dev/null', ); } @@ -140,7 +138,7 @@ export class ZigCompiler extends BaseCompiler { if (!foundVersion) return false; // Zig should not have more than 1 path return ['--pkg-begin', foundVersion.name, foundVersion.path, '--pkg-end']; - }) + }), ); } |