mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
chore
This commit is contained in:
@@ -161,6 +161,7 @@ class php extends TargetPackage
|
|||||||
// embed build options
|
// embed build options
|
||||||
if ($package->getName() === 'php' || $package->getName() === 'php-embed') {
|
if ($package->getName() === 'php' || $package->getName() === 'php-embed') {
|
||||||
$package->addBuildOption('build-shared', 'D', InputOption::VALUE_REQUIRED, 'Shared extensions to build, comma separated', '');
|
$package->addBuildOption('build-shared', 'D', InputOption::VALUE_REQUIRED, 'Shared extensions to build, comma separated', '');
|
||||||
|
$package->addBuildOption('maintainer-skip-build', null, null, '(maintainer only) skip embed build if exists');
|
||||||
}
|
}
|
||||||
|
|
||||||
// legacy php target build options
|
// legacy php target build options
|
||||||
@@ -265,10 +266,6 @@ class php extends TargetPackage
|
|||||||
if (!$package->getBuildOption('enable-zts')) {
|
if (!$package->getBuildOption('enable-zts')) {
|
||||||
throw new WrongUsageException('FrankenPHP SAPI requires ZTS enabled PHP, build with `--enable-zts`!');
|
throw new WrongUsageException('FrankenPHP SAPI requires ZTS enabled PHP, build with `--enable-zts`!');
|
||||||
}
|
}
|
||||||
// frankenphp doesn't support windows, BSD is currently not supported by StaticPHP
|
|
||||||
if (!in_array(PHP_OS_FAMILY, ['Linux', 'Darwin'])) {
|
|
||||||
throw new WrongUsageException('FrankenPHP SAPI is only available on Linux and macOS!');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// linux does not support loading shared libraries when target is pure static
|
// linux does not support loading shared libraries when target is pure static
|
||||||
$embed_type = getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') ?: 'static';
|
$embed_type = getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') ?: 'static';
|
||||||
|
|||||||
Reference in New Issue
Block a user