Put extension and library compatibility checks before compilation (#451)

This commit is contained in:
Jerry Ma
2024-05-16 13:01:11 +08:00
committed by GitHub
parent 3e84becf77
commit 3136d6edc1
13 changed files with 86 additions and 36 deletions

View File

@@ -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
}
}