Skip to content

Commit 8e96c64

Browse files
committed
add stdext to swoole
1 parent 8a9c8a2 commit 8e96c64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SPC/builder/extension/swoole.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ public function getUnixConfigureArg(bool $shared = false): string
6969
$arg .= $this->builder->getExt('swoole-hook-pgsql') ? ' --enable-swoole-pgsql' : ' --disable-swoole-pgsql';
7070
$arg .= $this->builder->getExt('swoole-hook-mysql') ? ' --enable-mysqlnd' : ' --disable-mysqlnd';
7171
$arg .= $this->builder->getExt('swoole-hook-sqlite') ? ' --enable-swoole-sqlite' : ' --disable-swoole-sqlite';
72-
7372
if ($this->builder->getExt('swoole-hook-odbc')) {
7473
$config = (new SPCConfigUtil($this->builder, ['libs_only_deps' => true]))->config([], ['unixodbc']);
7574
$arg .= ' --with-swoole-odbc=unixODBC,' . BUILD_ROOT_PATH . ' SWOOLE_ODBC_LIBS="' . $config['libs'] . '"';
7675
}
7776

77+
if ($this->getExtVersion() >= '6.1.0') {
78+
$arg .= ' --enable-swoole-stdext';
79+
}
80+
7881
if (SPCTarget::getTargetOS() === 'Darwin') {
7982
$arg .= ' ac_cv_lib_pthread_pthread_barrier_init=no';
8083
}

0 commit comments

Comments
 (0)