mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Update MacOSBuilder.php
This commit is contained in:
parent
a1f34a7df9
commit
9abf696725
@ -145,6 +145,12 @@ class MacOSBuilder extends BuilderBase
|
|||||||
if ($this->getLib('libxml2') || $this->getExt('iconv')) {
|
if ($this->getLib('libxml2') || $this->getExt('iconv')) {
|
||||||
$extra_libs .= ' -liconv';
|
$extra_libs .= ' -liconv';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->getPHPVersionID() < 80000) {
|
||||||
|
$json_74 = '--enable-json ';
|
||||||
|
} else {
|
||||||
|
$json_74 = '';
|
||||||
|
}
|
||||||
|
|
||||||
shell()->cd(SOURCE_PATH . '/php-src')
|
shell()->cd(SOURCE_PATH . '/php-src')
|
||||||
->exec(
|
->exec(
|
||||||
@ -159,6 +165,7 @@ class MacOSBuilder extends BuilderBase
|
|||||||
'--disable-phpdbg ' .
|
'--disable-phpdbg ' .
|
||||||
'--enable-cli ' .
|
'--enable-cli ' .
|
||||||
'--enable-fpm ' .
|
'--enable-fpm ' .
|
||||||
|
$json_74 .
|
||||||
'--enable-micro ' .
|
'--enable-micro ' .
|
||||||
($this->zts ? '--enable-zts' : '') . ' ' .
|
($this->zts ? '--enable-zts' : '') . ' ' .
|
||||||
$this->makeExtensionArgs() . ' ' .
|
$this->makeExtensionArgs() . ' ' .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user