mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 16:25:39 +08:00
Add PHP_BUILD_COMPILER for different toolchain
This commit is contained in:
@@ -61,6 +61,10 @@ class ToolchainManager
|
||||
}
|
||||
$toolchain = getenv('SPC_TOOLCHAIN');
|
||||
/* @var ToolchainInterface $toolchain */
|
||||
(new $toolchain())->afterInit();
|
||||
$instance = new $toolchain();
|
||||
$instance->afterInit();
|
||||
if (getenv('PHP_BUILD_COMPILER') === false && ($compiler_info = $instance->getCompilerInfo())) {
|
||||
GlobalEnvManager::putenv("PHP_BUILD_COMPILER={$compiler_info}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user