(compilerOptions: string[], newPath: string)
| 76 | } |
| 77 | |
| 78 | export function replaceSysrootArg(compilerOptions: string[], newPath: string): string[] { |
| 79 | return compilerOptions.map(elem => { |
| 80 | if (elem.includes(clang_style_sysroot_flag)) { |
| 81 | return clang_style_sysroot_flag + path.normalize(newPath); |
| 82 | } |
| 83 | |
| 84 | return elem; |
| 85 | }); |
| 86 | } |
| 87 | |
| 88 | export function getToolchainFlagFromOptions(options: string[]): string | false { |
| 89 | for (const elem of options) { |
no outgoing calls
no test coverage detected