trigger deprecation again

This commit is contained in:
DubbleClick 2025-07-22 17:04:56 +07:00
parent aa366d4213
commit 8f8a493b20

View File

@ -26,8 +26,7 @@ class ToolchainManager
}
$libc = getenv('SPC_LIBC');
if ($libc && !getenv('SPC_TARGET')) {
// TODO: @crazywhalecc this breaks tests
// logger()->warning('SPC_LIBC is deprecated, please use SPC_TARGET instead.');
trigger_error('Setting SPC_LIBC is deprecated, please use SPC_TARGET instead.', E_USER_DEPRECATED);
return match ($libc) {
'musl' => SystemUtil::isMuslDist() ? GccNativeToolchain::class : MuslToolchain::class,
'glibc' => !SystemUtil::isMuslDist() ? GccNativeToolchain::class : throw new WrongUsageException('SPC_LIBC must be musl for musl dist.'),