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

Function getSysrootByToolchainPath

lib/toolchain-utils.ts:152–158  ·  view source on GitHub ↗
(toolchainPath: string)

Source from the content-addressed store, hash-verified

150}
151
152export function getSysrootByToolchainPath(toolchainPath: string): string | undefined {
153 const lastPathBit = path.basename(toolchainPath);
154 const possibleSysrootPath = path.join(toolchainPath, lastPathBit, 'sysroot');
155 if (fs.existsSync(possibleSysrootPath)) {
156 return possibleSysrootPath;
157 }
158}

Callers 2

getExtraLdPathsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected