aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/zigcxx.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/zigcxx.ts')
-rw-r--r--lib/compilers/zigcxx.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/compilers/zigcxx.ts b/lib/compilers/zigcxx.ts
index 2d9b8ff3e..39a2e1621 100644
--- a/lib/compilers/zigcxx.ts
+++ b/lib/compilers/zigcxx.ts
@@ -28,6 +28,7 @@ import type {CompilerOutputOptions, ParseFiltersAndOutputOptions} from '../../ty
import {asSafeVer} from '../utils.js';
import {ClangCompiler} from './clang.js';
+import {ZigCxxParser} from './argument-parsers.js';
export class ZigCXX extends ClangCompiler {
private readonly needsForcedBinary: boolean;
@@ -43,6 +44,10 @@ export class ZigCXX extends ClangCompiler {
Semver.lt(asSafeVer(this.compiler.semver), '0.9.0', true);
}
+ protected override getArgumentParser(): any {
+ return ZigCxxParser;
+ }
+
override preProcess(source: string, filters: CompilerOutputOptions): string {
if (this.needsForcedBinary) {
// note: zig versions > 0.6 don't emit asm, only binary works - https://github.com/ziglang/zig/issues/8153