mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
we need extensions to explicitly tell which c std they need
This commit is contained in:
parent
47ab5d7584
commit
dce63d3c87
@ -576,7 +576,7 @@ class Extension
|
|||||||
|
|
||||||
protected function getExtraEnv(): array
|
protected function getExtraEnv(): array
|
||||||
{
|
{
|
||||||
return ['CFLAGS' => '-std=c17'];
|
return ['CFLAGS' => ''];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -24,4 +24,9 @@ class mongodb extends Extension
|
|||||||
$arg .= $this->builder->getLib('zlib') ? ' --with-mongodb-zlib=yes ' : ' --with-mongodb-zlib=bundled ';
|
$arg .= $this->builder->getLib('zlib') ? ' --with-mongodb-zlib=yes ' : ' --with-mongodb-zlib=bundled ';
|
||||||
return clean_spaces($arg);
|
return clean_spaces($arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getExtraEnv(): array
|
||||||
|
{
|
||||||
|
return ['CFLAGS' => '-std=c17'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user