(toolchainPath: string)
| 150 | } |
| 151 | |
| 152 | export 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 | } |
no outgoing calls
no test coverage detected