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

Method getCacheFile

lib/compilers/nim.ts:84–93  ·  view source on GitHub ↗
(options: string[], inputFilename: string, cacheDir: string)

Source from the content-addressed store, hash-verified

82 }
83
84 getCacheFile(options: string[], inputFilename: string, cacheDir: string) {
85 const commandsInOptions = _.intersection(options, NimCommands);
86 if (commandsInOptions.length === 0) return null;
87 const command = commandsInOptions[0];
88 const extension = this.expectedExtensionFromCommand(command);
89 if (!extension) return null;
90 const moduleName = path.basename(inputFilename);
91 const resultName = '@m' + moduleName + extension;
92 return path.join(cacheDir, resultName);
93 }
94
95 override async postProcess(
96 result: CompilationResult,

Callers 2

postProcessMethod · 0.95
nim-tests.tsFile · 0.80

Calls 1

Tested by

no test coverage detected