aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/zig.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/zig.js')
-rw-r--r--lib/compilers/zig.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/zig.js b/lib/compilers/zig.js
index ca8225fc7..1ebbfa441 100644
--- a/lib/compilers/zig.js
+++ b/lib/compilers/zig.js
@@ -61,7 +61,7 @@ class ZigCompiler extends BaseCompiler {
optionsForFilter(filters, outputFilename, userOptions) {
let options = [filters.execute ? 'build-exe' : 'build-obj'];
- if (this.compiler.semver === 'trunk' || Semver.gt(this.compiler.semver, '0.3.0')) {
+ if (this.compiler.semver === 'trunk' || (this.compiler.semver && Semver.gt(this.compiler.semver, '0.3.0'))) {
const outputDir = path.dirname(outputFilename);
const desiredName = path.basename(outputFilename);
// strip '.s' if we aren't executing