aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/zig.ts
diff options
context:
space:
mode:
authorfodinabor <5982050+fodinabor@users.noreply.github.com>2023-05-23 05:35:01 +0200
committerGitHub <noreply@github.com>2023-05-22 22:35:01 -0500
commite28e67d972ac8e914aa74872a518c1caa7126cfb (patch)
tree352d2be7e6fe255326e35f986805937210345f0c /lib/compilers/zig.ts
parentc2c5ffd458d32d9adeaf19ff21a5a33c8831d645 (diff)
downloadcompiler-explorer-e28e67d972ac8e914aa74872a518c1caa7126cfb.tar.gz
compiler-explorer-e28e67d972ac8e914aa74872a518c1caa7126cfb.zip
Add new "Debug intrinsics" filter. (#5045)gh-7478
For now, this removes all `llvm.dbg.*` calls from LLVM IR. This is useful to keep coloring the line correspondence between source and IR, while not polluting the IR with the debug intrinsics. Admittedly, I don't have much of a clue of what's going on here, so I might be missing obvious adaptions (e.g. can we disable this for all non-LLVM compilers for now somehow?). Also, not really a Node.JS testing wizard either... 🤷🏼 Just wanted this really bad for a workshop that's coming up soon ^^ Only tested with my system's default `clang` for now. Fixes #5044 --------- Co-authored-by: Matt Godbolt <matt@godbolt.org>
Diffstat (limited to 'lib/compilers/zig.ts')
-rw-r--r--lib/compilers/zig.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compilers/zig.ts b/lib/compilers/zig.ts
index 44c239438..235c1295d 100644
--- a/lib/compilers/zig.ts
+++ b/lib/compilers/zig.ts
@@ -55,6 +55,7 @@ export class ZigCompiler extends BaseCompiler {
} else {
this.compiler.irArg = ['--emit', 'llvm-ir'];
}
+ this.compiler.minIrArgs = ['--emit llvm-ir', '-femit-llvm-ir'];
}
override getSharedLibraryPathsAsArguments(): string[] {