mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
allow explicitly setting toolchain (simplify testing without constantly overriding CC and CXX)
This commit is contained in:
parent
8b3a22cbe4
commit
d8ee308a5f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user