mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
Forward-port #1022 spc target env var
This commit is contained in:
@@ -52,6 +52,6 @@ class ClangNativeToolchain implements UnixToolchainInterface
|
|||||||
|
|
||||||
public function isStatic(): bool
|
public function isStatic(): bool
|
||||||
{
|
{
|
||||||
return PHP_OS_FAMILY === 'Linux' && LinuxUtil::isMuslDist();
|
return PHP_OS_FAMILY === 'Linux' && LinuxUtil::isMuslDist() && !getenv('SPC_MUSL_DYNAMIC');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,6 +49,6 @@ class GccNativeToolchain implements UnixToolchainInterface
|
|||||||
|
|
||||||
public function isStatic(): bool
|
public function isStatic(): bool
|
||||||
{
|
{
|
||||||
return PHP_OS_FAMILY === 'Linux' && LinuxUtil::isMuslDist();
|
return PHP_OS_FAMILY === 'Linux' && LinuxUtil::isMuslDist() && !getenv('SPC_MUSL_DYNAMIC');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user