fix macOS C++ space

This commit is contained in:
crazywhalecc 2023-07-26 00:01:12 +08:00 committed by Jerry Ma
parent 956c87a657
commit c5a70f101a

View File

@ -126,7 +126,7 @@ class MacOSBuilder extends BuilderBase
*/
public function buildPHP(int $build_target = BUILD_TARGET_NONE, bool $bloat = false): void
{
$extra_libs = $this->getFrameworks(true) . ' ' . ($this->hasCppExtension() ? '-lc++' : '');
$extra_libs = $this->getFrameworks(true) . ' ' . ($this->hasCppExtension() ? '-lc++ ' : '');
if (!$bloat) {
$extra_libs .= implode(' ', $this->getAllStaticLibFiles());
} else {