mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 01:29:23 -06:00
Fixes #5351 I just copied the changes in #4358 and checked that it works locally with ```sh make debug EXTRA_ARGS='--language zig' ``` although I had to make the following changes to get it to work locally: ```diff diff --git a/etc/config/zig.defaults.properties b/etc/config/zig.defaults.properties index 008aa215..f4db084c 100644 --- a/etc/config/zig.defaults.properties +++ b/etc/config/zig.defaults.properties @@ -1,4 +1,4 @@ -compilers=/usr/bin/zig +compilers=/opt/homebrew/bin/zig supportsBinary=true compilerType=zig objdumper=objdump diff --git a/lib/compilers/zig.ts b/lib/compilers/zig.ts index b0d55432..8e33767f 100644 --- a/lib/compilers/zig.ts +++ b/lib/compilers/zig.ts @@ -44,6 +44,7 @@ export class ZigCompiler extends BaseCompiler { super(info, env); this.compiler.supportsIntel = true; this.compiler.supportsIrView = true; + this.compiler.semver = '0.11.0'; this.self_hosted_cli = this.compiler.semver === 'trunk' || ```