mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 16:25:39 +08:00
Put extension and library compatibility checks before compilation (#451)
This commit is contained in:
@@ -11,11 +11,10 @@ use SPC\util\CustomExt;
|
||||
#[CustomExt('parallel')]
|
||||
class parallel extends Extension
|
||||
{
|
||||
public function getConfigureArg(): string
|
||||
public function validate(): void
|
||||
{
|
||||
if (!$this->builder->getOption('enable-zts')) {
|
||||
throw new WrongUsageException('ext-parallel must be built with ZTS builds. Use "--enable-zts" option!');
|
||||
}
|
||||
return parent::getConfigureArg(); // TODO: Change the autogenerated stub
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user