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

Method getLibLinkInfo

lib/base-compiler.ts:1281–1298  ·  view source on GitHub ↗
(
        filters: ParseFiltersAndOutputOptions,
        libraries: SelectedLibraryVersion[],
        toolchainPath: string | undefined,
        dirPath: string,
    )

Source from the content-addressed store, hash-verified

1279 }
1280
1281 protected getLibLinkInfo(
1282 filters: ParseFiltersAndOutputOptions,
1283 libraries: SelectedLibraryVersion[],
1284 toolchainPath: string | undefined,
1285 dirPath: string,
1286 ) {
1287 let libLinks: string[] = [];
1288 let libPathsAsFlags: string[] = [];
1289 let staticLibLinks: string[] = [];
1290
1291 if (filters.binary) {
1292 libLinks = (this.getSharedLibraryLinks(libraries).filter(Boolean) as string[]) || [];
1293 libPathsAsFlags = this.getSharedLibraryPathsAsArguments(libraries, undefined, toolchainPath, dirPath);
1294 const libPaths = this.getSharedLibraryPaths(libraries, dirPath);
1295 staticLibLinks = (this.getStaticLibraryLinks(libraries, libPaths).filter(Boolean) as string[]) || [];
1296 }
1297 return {libLinks, libPathsAsFlags, staticLibLinks};
1298 }
1299
1300 protected fixIncompatibleOptions(
1301 options: string[],

Callers 1

prepareArgumentsMethod · 0.95

Tested by

no test coverage detected