diff options
Diffstat (limited to 'lib/compilers/zig.ts')
-rw-r--r-- | lib/compilers/zig.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/zig.ts b/lib/compilers/zig.ts index eed8a4bce..4862e8c87 100644 --- a/lib/compilers/zig.ts +++ b/lib/compilers/zig.ts @@ -120,10 +120,10 @@ export class ZigCompiler extends BaseCompiler { const outputDir = path.dirname(outputFilename); options.push('--cache-dir', outputDir, '--name', name); - if (!filters.binary) { - options.push('-fno-emit-bin', '-femit-asm=' + desiredName); - } else { + if (filters.binary) { options.push('-femit-bin=' + desiredName); + } else { + options.push('-fno-emit-bin', '-femit-asm=' + desiredName); } return options; } |