mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
fix custompackage handling
This commit is contained in:
@@ -42,10 +42,10 @@ class ZigToolchain implements ToolchainInterface
|
||||
|
||||
public function afterInit(): void
|
||||
{
|
||||
if (!is_dir(Zig::getEnvironment()['PATH'])) {
|
||||
if (!Zig::isInstalled()) {
|
||||
throw new EnvironmentException('You are building with zig, but zig is not installed, please install zig first. (You can use `doctor` command to install it)');
|
||||
}
|
||||
GlobalEnvManager::addPathIfNotExists(Zig::getEnvironment()['PATH']);
|
||||
GlobalEnvManager::addPathIfNotExists(Zig::getPath());
|
||||
f_passthru('ulimit -n 2048'); // zig opens extra file descriptors, so when a lot of extensions are built statically, 1024 is not enough
|
||||
$cflags = getenv('SPC_DEFAULT_C_FLAGS') ?: '';
|
||||
$cxxflags = getenv('SPC_DEFAULT_CXX_FLAGS') ?: '';
|
||||
|
||||
Reference in New Issue
Block a user