diff options
-rw-r--r-- | CONTRIBUTORS.md | 5 | ||||
-rw-r--r-- | lib/compilers/zig.js | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index eec5d99eb..168bfd3f0 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -26,7 +26,6 @@ From oldest to newest contributor, we would like to thank: - [Alexander Monakov](https://github.com/amonakov) - [David Nadlinger](https://github.com/klickverbot) - [Carlos van Rooijen](https://github.com/CvRXX) -- [Kaartic Sivaraam](https://github.com/sivaraam) - [Lilian A. Moraru](https://github.com/lilianmoraru) - [Tim Rakowski](https://github.com/racko) - [Hana Dusíková](https://github.com/hanickadot) @@ -57,5 +56,9 @@ From oldest to newest contributor, we would like to thank: - [phuclv90](https://github.com/phuclv90) - [Nicole Mazzuca](https://github.com/ubsan) - [Jameson Nash](https://github.com/vtjnash) +- [Raul Tambre](https://github.com/tambry) +- [Dominic Kempf](https://github.com/dokempf) - [Marc Tiehuis](https://github.com/tiehuis) +- [Miguel Ojeda](https://github.com/ojeda) - [Niek J. Bouman](https://github.com/niekbouman) +- [Erik Little](https://github.com/nuclearace) diff --git a/lib/compilers/zig.js b/lib/compilers/zig.js index fdeaf4bae..a4755ce98 100644 --- a/lib/compilers/zig.js +++ b/lib/compilers/zig.js @@ -33,18 +33,18 @@ class ZigCompiler extends BaseCompiler { } preProcess(source) { - if (this.compiler.semver == '0.2.0') { + 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: ' + - '?&@import("builtin").StackTrace) noreturn {\n'; + '?&@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: ' + - '?*@import("builtin").StackTrace) noreturn {\n'; + '?*@import("builtin").StackTrace) noreturn {\n'; source += ' zig_panic();\n'; source += '}\n'; } @@ -57,7 +57,7 @@ class ZigCompiler extends BaseCompiler { 'build-obj', '--cache-dir', path.dirname(outputFilename), '--output', this.filename(outputFilename), - '--output-h', '/dev/null', + '--output-h', '/dev/null' ]; if (!filters.binary) { |