mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-20 23:35:37 +08:00
trigger deprecation again
This commit is contained in:
@@ -26,8 +26,7 @@ class ToolchainManager
|
|||||||
}
|
}
|
||||||
$libc = getenv('SPC_LIBC');
|
$libc = getenv('SPC_LIBC');
|
||||||
if ($libc && !getenv('SPC_TARGET')) {
|
if ($libc && !getenv('SPC_TARGET')) {
|
||||||
// TODO: @crazywhalecc this breaks tests
|
trigger_error('Setting SPC_LIBC is deprecated, please use SPC_TARGET instead.', E_USER_DEPRECATED);
|
||||||
// logger()->warning('SPC_LIBC is deprecated, please use SPC_TARGET instead.');
|
|
||||||
return match ($libc) {
|
return match ($libc) {
|
||||||
'musl' => SystemUtil::isMuslDist() ? GccNativeToolchain::class : MuslToolchain::class,
|
'musl' => SystemUtil::isMuslDist() ? GccNativeToolchain::class : MuslToolchain::class,
|
||||||
'glibc' => !SystemUtil::isMuslDist() ? GccNativeToolchain::class : throw new WrongUsageException('SPC_LIBC must be musl for musl dist.'),
|
'glibc' => !SystemUtil::isMuslDist() ? GccNativeToolchain::class : throw new WrongUsageException('SPC_LIBC must be musl for musl dist.'),
|
||||||
|
|||||||
Reference in New Issue
Block a user