(info: PreliminaryCompilerInfo, env: CompilationEnvironment)
| 62 | } |
| 63 | |
| 64 | constructor(info: PreliminaryCompilerInfo, env: CompilationEnvironment) { |
| 65 | // Prefer the demangler bundled with this clang version. |
| 66 | // Still allows overriding from config (for bpf) |
| 67 | if (!info.demangler || info.demangler.includes('llvm-cxxfilt')) { |
| 68 | const demanglerPath = path.join(path.dirname(info.exe), 'llvm-cxxfilt'); |
| 69 | if (fs.existsSync(demanglerPath)) { |
| 70 | info.demangler = demanglerPath; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | super(info, env); |
| 75 | |
| 76 | this.compiler.supportsDeviceAsmView = true; |
| 77 | |
| 78 | const asanSymbolizerPath = path.join(path.dirname(this.compiler.exe), 'llvm-symbolizer'); |
| 79 | if (fs.existsSync(asanSymbolizerPath)) { |
| 80 | this.asanSymbolizerPath = asanSymbolizerPath; |
| 81 | } |
| 82 | |
| 83 | const offloadBundlerPath = path.join(path.dirname(this.compiler.exe), 'clang-offload-bundler'); |
| 84 | if (fs.existsSync(offloadBundlerPath)) { |
| 85 | this.offloadBundlerPath = offloadBundlerPath; |
| 86 | } |
| 87 | |
| 88 | const llvmDisassemblerPath = path.join(path.dirname(this.compiler.exe), 'llvm-dis'); |
| 89 | if (fs.existsSync(llvmDisassemblerPath)) { |
| 90 | this.llvmDisassemblerPath = llvmDisassemblerPath; |
| 91 | } else { |
| 92 | this.llvmDisassemblerPath = this.compilerProps<string | undefined>('llvmDisassembler'); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | override isCfgCompiler() { |
| 97 | return true; |
nothing calls this directly
no outgoing calls
no test coverage detected