mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 00:35:41 +08:00
Move opcache JIT handling from Linux and MacOS builders to Extension
This commit is contained in:
@@ -52,10 +52,12 @@ class opcache extends Extension
|
||||
public function getUnixConfigureArg(bool $shared = false): string
|
||||
{
|
||||
$version = $this->builder->getPHPVersion();
|
||||
$opcache_jit = !$this->builder->getOption('disable-opcache-jit', false);
|
||||
$opcache_jit = $opcache_jit ? '--enable-opcache-jit' : '--disable-opcache-jit';
|
||||
if (version_compare($version, '8.5.0-dev', '<')) {
|
||||
return '--enable-opcache';
|
||||
return "--enable-opcache {$opcache_jit}";
|
||||
}
|
||||
return '';
|
||||
return $opcache_jit;
|
||||
}
|
||||
|
||||
public function getDistName(): string
|
||||
|
||||
Reference in New Issue
Block a user