disable brotli if not enabled

This commit is contained in:
crazywhalecc 2023-11-15 18:29:59 +08:00
parent e3671387fc
commit 66cebb5fe4
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -16,7 +16,7 @@ class swoole extends Extension
// pgsql hook is buggy for static php
$arg .= ' --disable-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) : '';
$arg .= $this->builder->getLib('brotli') ? (' --enable-brotli --with-brotli-dir=' . BUILD_ROOT_PATH) : ' --disable-brotli';
$arg .= $this->builder->getExt('curl') ? ' --enable-swoole-curl' : ' --disable-swoole-curl';
return $arg;
}