add hasCppExtension check

This commit is contained in:
crazywhalecc
2023-07-24 23:49:52 +08:00
parent 0e024a8c43
commit b8e6f9d1be
4 changed files with 40 additions and 3 deletions

View File

@@ -139,7 +139,8 @@ class LinuxBuilder extends BuilderBase
)
);
}
if ($this->getExt('swoole') || $this->getExt('intl')) {
if ($this->hasCppExtension()) {
$extra_libs .= ' -lstdc++';
}
if ($this->getExt('imagick')) {