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

Method constructor

lib/compilers/zig.ts:45–60  ·  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 this.self_hosted_cli =
51 this.compiler.semver === 'trunk' ||
52 !!(this.compiler.semver && Semver.gt(asSafeVer(this.compiler.semver), '0.6.0', true));
53
54 if (this.self_hosted_cli) {
55 this.compiler.irArg = ['-femit-llvm-ir'];
56 } else {
57 this.compiler.irArg = ['--emit', 'llvm-ir'];
58 }
59 this.compiler.minIrArgs = ['--emit llvm-ir', '-femit-llvm-ir'];
60 }
61
62 override getSharedLibraryPathsAsArguments(): string[] {
63 return [];

Callers

nothing calls this directly

Calls 1

asSafeVerFunction · 0.85

Tested by

no test coverage detected