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

Method getExtraLdPaths

lib/base-compiler.ts:1075–1089  ·  view source on GitHub ↗
(key: CacheKey)

Source from the content-addressed store, hash-verified

1073 }
1074
1075 getExtraLdPaths(key: CacheKey): string[] {
1076 let toolchainPath: any;
1077 if (key.options) {
1078 toolchainPath = getToolchainPathWithOptionsArr(this.compiler.exe, key.options) || this.toolchainPath;
1079 }
1080
1081 if (toolchainPath) {
1082 const sysrootPath = getSysrootByToolchainPath(toolchainPath);
1083 if (sysrootPath) {
1084 return [path.join(sysrootPath, 'lib')];
1085 }
1086 }
1087
1088 return [];
1089 }
1090
1091 getIncludeArguments(libraries: SelectedLibraryVersion[], dirPath: string): string[] {
1092 const includeFlag = this.compiler.includeFlag || '-I';

Calls 2

Tested by

no test coverage detected