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

Function getSysrootFlagFromOptions

lib/toolchain-utils.ts:101–107  ·  view source on GitHub ↗
(options: string[])

Source from the content-addressed store, hash-verified

99}
100
101export function getSysrootFlagFromOptions(options: string[]): string | false {
102 for (const elem of options) {
103 if (elem.includes(clang_style_sysroot_flag)) return clang_style_sysroot_flag;
104 }
105
106 return false;
107}
108
109export function hasSysrootArg(options: string[]): boolean {
110 return !!getSysrootFlagFromOptions(options);

Callers 1

hasSysrootArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected