From a19c4470bb20e86fbb52c716d565122c8461eb21 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Fri, 8 May 2026 19:11:31 +0800 Subject: [PATCH] Fix frameworks in unix cmake executor wrongly used by linux --- src/StaticPHP/Runtime/Executor/UnixCMakeExecutor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StaticPHP/Runtime/Executor/UnixCMakeExecutor.php b/src/StaticPHP/Runtime/Executor/UnixCMakeExecutor.php index ecf17693..82fa468a 100644 --- a/src/StaticPHP/Runtime/Executor/UnixCMakeExecutor.php +++ b/src/StaticPHP/Runtime/Executor/UnixCMakeExecutor.php @@ -230,7 +230,7 @@ class UnixCMakeExecutor extends Executor // EXE linker flags: base system libs + framework flags for target packages $exeLinkerFlags = SystemTarget::getRuntimeLibs(); - if ($this->package instanceof TargetPackage) { + if ($this->package instanceof TargetPackage && SystemTarget::getTargetOS() === 'Darwin') { $resolvedNames = array_keys($this->installer->getResolvedPackages()); $resolvedNames[] = $this->package->getName(); $fwFlags = new SPCConfigUtil()->getFrameworksString($resolvedNames);