mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
22 lines
542 B
PHP
22 lines
542 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\builder\extension;
|
||
|
|
|
||
|
|
use SPC\builder\Extension;
|
||
|
|
use SPC\exception\WrongUsageException;
|
||
|
|
use SPC\util\CustomExt;
|
||
|
|
|
||
|
|
#[CustomExt('parallel')]
|
||
|
|
class parallel extends Extension
|
||
|
|
{
|
||
|
|
public function getConfigureArg(): string
|
||
|
|
{
|
||
|
|
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
|
||
|
|
}
|
||
|
|
}
|