mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
trigger deprecation again
This commit is contained in:
parent
aa366d4213
commit
8f8a493b20
@ -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.'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user