add swoole pgsql (--enable-swoole-pgsql)

This commit is contained in:
kocoten1992 2023-08-21 11:15:09 +07:00 committed by Jerry Ma
parent dfdeab70f1
commit 21a4ba7478
2 changed files with 3 additions and 2 deletions

View File

@ -370,7 +370,8 @@
"arg-type": "custom",
"cpp-extension": true,
"lib-depends": [
"openssl"
"openssl",
"pqsql"
],
"ext-depends": [
"openssl"

View File

@ -12,7 +12,7 @@ class swoole extends Extension
{
public function getUnixConfigureArg(): string
{
$arg = '--enable-swoole';
$arg = '--enable-swoole --enable-swoole-pgsql';
$arg .= $this->builder->getLib('openssl') ? ' --enable-openssl' : ' --disable-openssl --without-openssl';
$arg .= $this->builder->getLib('brotli') ? (' --enable-brotli --with-brotli-dir=' . BUILD_ROOT_PATH) : '';
// curl hook is buggy for static php