aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/clang.ts
diff options
context:
space:
mode:
authorJeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>2023-06-28 07:07:33 -0500
committerGitHub <noreply@github.com>2023-06-28 08:07:33 -0400
commit3638f6026c7a756ae1591a02112e3bb59627c48e (patch)
tree6831c38e2ec84080671473a91b550636cf2a754f /lib/compilers/clang.ts
parent9b69146add6fb307104fdacb346d54f74b7c1e70 (diff)
downloadcompiler-explorer-gh-8008.tar.gz
compiler-explorer-gh-8008.zip
Support control flow graphs for more compilers (#5209)gh-8008
This PR should make cfg generation available for all clang compilers, icc, and any compiler whose instructionSet property is x86, arm, or llvm.
Diffstat (limited to 'lib/compilers/clang.ts')
-rw-r--r--lib/compilers/clang.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compilers/clang.ts b/lib/compilers/clang.ts
index 9b93e2419..f8ae4b6e5 100644
--- a/lib/compilers/clang.ts
+++ b/lib/compilers/clang.ts
@@ -70,6 +70,10 @@ export class ClangCompiler extends BaseCompiler {
}
}
+ override isCfgCompiler() {
+ return true;
+ }
+
async addTimeTraceToResult(result: CompilationResult, dirPath: string, outputFilename: string) {
let timeTraceJson = '';
const outputExt = path.extname(outputFilename);