mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
allow explicitly setting toolchain (simplify testing without constantly overriding CC and CXX)
This commit is contained in:
@@ -21,6 +21,9 @@ class ToolchainManager
|
||||
|
||||
public static function getToolchainClass(): string
|
||||
{
|
||||
if ($tc = getenv('SPC_TOOLCHAIN')) {
|
||||
return $tc;
|
||||
}
|
||||
$libc = getenv('SPC_LIBC');
|
||||
if ($libc && !getenv('SPC_TARGET')) {
|
||||
// TODO: @crazywhalecc this breaks tests
|
||||
|
||||
Reference in New Issue
Block a user