mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Use explict glibc toolchain target
This commit is contained in:
parent
3357f286ab
commit
90823e3b17
@ -80,7 +80,8 @@ class GlobalEnvManager
|
||||
SPCTarget::MUSL_STATIC, SPCTarget::MUSL => SystemUtil::isMuslDist() ? 'gcc-native' : 'musl',
|
||||
SPCTarget::MACHO => 'clang-native',
|
||||
SPCTarget::MSVC_STATIC => 'msvc',
|
||||
default => 'gcc-native',
|
||||
SPCTarget::GLIBC => !SystemUtil::isMuslDist() ? 'gcc-native' : throw new WrongUsageException('SPC_TARGET must be musl-static or musl for musl dist.'),
|
||||
default => throw new WrongUsageException('Unknown SPC_TARGET: ' . getenv('SPC_TARGET')),
|
||||
};
|
||||
|
||||
SPCTarget::initTargetForToolchain($toolchain);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user