allow explicitly setting toolchain (simplify testing without constantly overriding CC and CXX)

This commit is contained in:
DubbleClick 2025-07-01 23:01:53 +07:00
parent 8b3a22cbe4
commit d8ee308a5f

View File

@ -21,6 +21,9 @@ class ToolchainManager
public static function getToolchainClass(): string public static function getToolchainClass(): string
{ {
if ($tc = getenv('SPC_TOOLCHAIN')) {
return $tc;
}
$libc = getenv('SPC_LIBC'); $libc = getenv('SPC_LIBC');
if ($libc && !getenv('SPC_TARGET')) { if ($libc && !getenv('SPC_TARGET')) {
// TODO: @crazywhalecc this breaks tests // TODO: @crazywhalecc this breaks tests