mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-21 15:55:36 +08:00
Use explict glibc toolchain target
This commit is contained in:
@@ -80,7 +80,8 @@ class GlobalEnvManager
|
|||||||
SPCTarget::MUSL_STATIC, SPCTarget::MUSL => SystemUtil::isMuslDist() ? 'gcc-native' : 'musl',
|
SPCTarget::MUSL_STATIC, SPCTarget::MUSL => SystemUtil::isMuslDist() ? 'gcc-native' : 'musl',
|
||||||
SPCTarget::MACHO => 'clang-native',
|
SPCTarget::MACHO => 'clang-native',
|
||||||
SPCTarget::MSVC_STATIC => 'msvc',
|
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);
|
SPCTarget::initTargetForToolchain($toolchain);
|
||||||
|
|||||||
Reference in New Issue
Block a user