mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 08:45:40 +08:00
Remove dev build target
This commit is contained in:
@@ -146,7 +146,6 @@ class MacOSBuilder extends UnixBuilderBase
|
||||
$enableFpm = ($build_target & BUILD_TARGET_FPM) === BUILD_TARGET_FPM;
|
||||
$enableMicro = ($build_target & BUILD_TARGET_MICRO) === BUILD_TARGET_MICRO;
|
||||
$enableEmbed = ($build_target & BUILD_TARGET_EMBED) === BUILD_TARGET_EMBED;
|
||||
$enableDev = ($build_target & BUILD_TARGET_DEV) === BUILD_TARGET_DEV;
|
||||
|
||||
// prepare build php envs
|
||||
$mimallocLibs = $this->getLib('mimalloc') !== null ? BUILD_LIB_PATH . '/mimalloc.o ' : '';
|
||||
@@ -198,11 +197,6 @@ class MacOSBuilder extends UnixBuilderBase
|
||||
logger()->info('building micro');
|
||||
$this->buildMicro();
|
||||
}
|
||||
if ($enableDev && !$enableEmbed) {
|
||||
// install dynamic php extension building
|
||||
logger()->info('building dynamic php extension dev dependencies');
|
||||
$this->buildPhpDev();
|
||||
}
|
||||
if ($enableEmbed) {
|
||||
logger()->info('building embed');
|
||||
if ($enableMicro) {
|
||||
@@ -309,14 +303,6 @@ class MacOSBuilder extends UnixBuilderBase
|
||||
$this->patchPhpScripts();
|
||||
}
|
||||
|
||||
protected function buildPhpDev(): void
|
||||
{
|
||||
$vars = SystemUtil::makeEnvVarString($this->getMakeExtraVars());
|
||||
shell()->cd(SOURCE_PATH . '/php-src')
|
||||
->exec(getenv('SPC_CMD_PREFIX_PHP_MAKE') . ' INSTALL_ROOT=' . BUILD_ROOT_PATH . " {$vars} install-build install-programs install-headers");
|
||||
$this->patchPhpScripts();
|
||||
}
|
||||
|
||||
private function getMakeExtraVars(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user