MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / constructor

Method constructor

lib/compilers/spice.ts:45–64  ·  view source on GitHub ↗
(info: PreliminaryCompilerInfo, env: CompilationEnvironment)

Source from the content-addressed store, hash-verified

43 }
44
45 constructor(info: PreliminaryCompilerInfo, env: CompilationEnvironment) {
46 super(info, env);
47 this.compiler.supportsIntel = true;
48 this.compiler.supportsIrView = true;
49
50 // The --abort-after-dump option was introduced in v0.19.3. Do not use it before that.
51 if (Semver.lte(asSafeVer(this.compiler.semver), '0.19.2', true)) {
52 this.compiler.irArg = ['-ir'];
53 this.compiler.minIrArgs = ['-ir'];
54 } else {
55 this.compiler.irArg = ['-ir', '--abort-after-dump'];
56 this.compiler.minIrArgs = ['-ir', '--abort-after-dump'];
57 }
58
59 this.compiler.optPipeline = {
60 arg: ['-llvm', '-print-after-all', '-llvm', '-print-before-all'],
61 moduleScopeArg: ['-llvm', '-print-module-scope'],
62 noDiscardValueNamesArg: [],
63 };
64 }
65
66 override getSharedLibraryPathsAsArguments() {
67 return [];

Callers

nothing calls this directly

Calls 1

asSafeVerFunction · 0.85

Tested by

no test coverage detected