MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / envHasLib

Function envHasLib

packages/native/scripts/build-native.mjs:13–21  ·  view source on GitHub ↗
(env, libName)

Source from the content-addressed store, hash-verified

11}
12
13function envHasLib(env, libName) {
14 if (process.platform !== "win32") return true;
15 const libPath = env.LIB;
16 if (typeof libPath !== "string" || libPath.length === 0) return false;
17 for (const dir of splitPathList(libPath, ";")) {
18 if (existsSync(join(dir, libName))) return true;
19 }
20 return false;
21}
22
23function parseCmdSetOutput(output) {
24 const next = {};

Callers 1

withMsvcDevEnvFunction · 0.85

Calls 1

splitPathListFunction · 0.85

Tested by

no test coverage detected