Put it into toolchain manager to skip in unit test

This commit is contained in:
crazywhalecc
2025-08-31 15:24:29 +08:00
parent 022ba3dce4
commit 3b9efcb2d4
2 changed files with 10 additions and 8 deletions

View File

@@ -122,14 +122,6 @@ class GlobalEnvManager
self::putenv("YACC={$yacc}");
}
}
// init pkg-config for unix
if (is_unix()) {
if (($found = PkgConfigUtil::findPkgConfig()) === null) {
throw new WrongUsageException('Cannot find pkg-config executable. Please run `doctor` to fix this.');
}
self::putenv("PKG_CONFIG={$found}");
}
}
private static function readIniFile(): array