mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
@@ -30,7 +30,7 @@ class xlswriter extends Extension
|
|||||||
{
|
{
|
||||||
$patched = parent::patchBeforeMake();
|
$patched = parent::patchBeforeMake();
|
||||||
|
|
||||||
// Bundled minizip uses K&R C function declarations rejected by C23 (default on macOS with Xcode 16+)
|
// Remove when https://github.com/viest/php-ext-xlswriter/pull/560 is merged
|
||||||
if (PHP_OS_FAMILY !== 'Windows') {
|
if (PHP_OS_FAMILY !== 'Windows') {
|
||||||
GlobalEnvManager::putenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS=' . getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS') . ' -std=gnu17');
|
GlobalEnvManager::putenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS=' . getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS') . ' -std=gnu17');
|
||||||
$patched = true;
|
$patched = true;
|
||||||
@@ -49,6 +49,7 @@ class xlswriter extends Extension
|
|||||||
return $patched;
|
return $patched;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove when https://github.com/viest/php-ext-xlswriter/pull/560 is merged
|
||||||
protected function getExtraEnv(): array
|
protected function getExtraEnv(): array
|
||||||
{
|
{
|
||||||
return ['CFLAGS' => '-std=gnu17'];
|
return ['CFLAGS' => '-std=gnu17'];
|
||||||
|
|||||||
Reference in New Issue
Block a user