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

Method afterBuild

lib/base-compiler.ts:2165–2172  ·  view source on GitHub ↗
(key: CacheKey, dirPath: string, buildResult: BuildResult)

Source from the content-addressed store, hash-verified

2163 }
2164
2165 async afterBuild(key: CacheKey, dirPath: string, buildResult: BuildResult): Promise<BuildResult> {
2166 if (os.platform() === 'linux' && buildResult.code === 0 && buildResult.executableFilename) {
2167 const libraryPaths = this.getSharedLibraryPaths(key.libraries, dirPath);
2168 await copyCopperSpicePlugins(dirPath, buildResult.executableFilename, key.libraries, libraryPaths);
2169 }
2170
2171 return buildResult;
2172 }
2173
2174 async getOrBuildExecutable(
2175 key: CacheKey,

Callers 1

Calls 2

getSharedLibraryPathsMethod · 0.95
copyCopperSpicePluginsFunction · 0.85

Tested by

no test coverage detected