Skip to content

Commit d8ee308

Browse files
committed
allow explicitly setting toolchain (simplify testing without constantly overriding CC and CXX)
1 parent 8b3a22c commit d8ee308

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SPC/toolchain/ToolchainManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class ToolchainManager
2121

2222
public static function getToolchainClass(): string
2323
{
24+
if ($tc = getenv('SPC_TOOLCHAIN')) {
25+
return $tc;
26+
}
2427
$libc = getenv('SPC_LIBC');
2528
if ($libc && !getenv('SPC_TARGET')) {
2629
// TODO: @crazywhalecc this breaks tests

0 commit comments

Comments
 (0)