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

Method constructor

lib/compilers/clojure.ts:48–61  ·  view source on GitHub ↗
(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment)

Source from the content-addressed store, hash-verified

46 }
47
48 constructor(compilerInfo: PreliminaryCompilerInfo, env: CompilationEnvironment) {
49 super(compilerInfo, env);
50 // Use invalid Clojure filename to avoid clashing with name determined by namespace
51 this.compileFilename = `example-source${this.lang.extensions[0]}`;
52 this.javaHome = this.compilerProps<string>(`compiler.${this.compiler.id}.java_home`);
53 this.compilerWrapperPath =
54 this.compilerProps('compilerWrapper', '') ||
55 utils.resolvePathFromAppRoot('etc', 'scripts', 'clojure_wrapper.clj');
56 this.compiler.supportsClojureMacroExpView = true;
57 const repoDir =
58 this.compilerProps<string>(`compiler.${this.compiler.id}.repo_dir`) ||
59 path.resolve(path.dirname(this.compiler.exe), '../.m2/repository');
60 this.defaultDeps = `{:mvn/local-repo "${repoDir}"}`;
61 }
62
63 override getDefaultExecOptions() {
64 const execOptions = super.getDefaultExecOptions();

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected