mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-13 03:45:37 +08:00
Refactor extension configuration and improve Windows build support
This commit is contained in:
@@ -19,4 +19,10 @@ class mbstring
|
||||
$arg .= $installer->isPackageResolved('ext-mbregex') === false ? ' --disable-mbregex' : ' --enable-mbregex';
|
||||
return $arg;
|
||||
}
|
||||
|
||||
#[CustomPhpConfigureArg('Windows')]
|
||||
public function getWinConfigureArg(PackageInstaller $installer): string
|
||||
{
|
||||
return '--enable-mbstring ' . ($installer->isPackageResolved('ext-mbregex') ? '--enable-mbregex' : ' --disable-mbregex');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user