mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
shared-extensions instead of build-shared
This commit is contained in:
@@ -49,7 +49,7 @@ class CraftCommand extends BaseCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
$static_extensions = implode(',', $craft['extensions']);
|
$static_extensions = implode(',', $craft['extensions']);
|
||||||
$shared_extensions = implode(',', $craft['build-options']['build-shared']) ?? '';
|
$shared_extensions = implode(',', $craft['shared-extensions']);
|
||||||
$libs = implode(',', $craft['libs']);
|
$libs = implode(',', $craft['libs']);
|
||||||
|
|
||||||
// init log
|
// init log
|
||||||
@@ -90,7 +90,7 @@ class CraftCommand extends BaseCommand
|
|||||||
|
|
||||||
// craft build
|
// craft build
|
||||||
if ($craft['craft-options']['build']) {
|
if ($craft['craft-options']['build']) {
|
||||||
$args = [$static_extensions, "--with-libs={$libs}", ...array_map(fn ($x) => "--build-{$x}", $craft['sapi'])];
|
$args = [$static_extensions, "--with-libs={$libs}", "--build-shared={$shared_extensions}", ...array_map(fn ($x) => "--build-{$x}", $craft['sapi'])];
|
||||||
$this->optionsToArguments($craft['build-options'], $args);
|
$this->optionsToArguments($craft['build-options'], $args);
|
||||||
$retcode = $this->runCommand('build', ...$args);
|
$retcode = $this->runCommand('build', ...$args);
|
||||||
if ($retcode !== 0) {
|
if ($retcode !== 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user