diff options
author | RabsRincon <ruben@rinconblanco.es> | 2019-03-17 12:49:41 +0100 |
---|---|---|
committer | RabsRincon <ruben@rinconblanco.es> | 2019-03-17 12:49:41 +0100 |
commit | e721c2310e25c541155c7552319be2e13632c8ae (patch) | |
tree | 371c534a2f2fe98ef1d333d554a0235216032eab /lib/compilers/zig.js | |
parent | d414896bb4ecff2b1f45c2afc828e58652d1983c (diff) | |
download | compiler-explorer-e721c2310e25c541155c7552319be2e13632c8ae.tar.gz compiler-explorer-e721c2310e25c541155c7552319be2e13632c8ae.zip |
Fix Zig semver check
Diffstat (limited to 'lib/compilers/zig.js')
-rw-r--r-- | lib/compilers/zig.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/zig.js b/lib/compilers/zig.js index e00bb0877..84ef9d6d7 100644 --- a/lib/compilers/zig.js +++ b/lib/compilers/zig.js @@ -55,7 +55,7 @@ class ZigCompiler extends BaseCompiler { optionsForFilter(filters, outputFilename, userOptions) { let options = [filters.execute ? 'build-exe' : 'build-obj']; - if (Semver.gt(this.compiler.version, '0.3.0')) { + if (this.compiler.semver === 'trunk' || Semver.gt(this.compiler.semver, '0.3.0')) { const outputDir = path.dirname(outputFilename); options.push('--cache-dir', outputDir, '--output-dir', outputDir, |