conflicts with shared tests

This commit is contained in:
DubbleClick
2025-07-01 14:41:14 +07:00
parent ba7f994a71
commit bebcb978f6
4 changed files with 9 additions and 10 deletions

View File

@@ -6,6 +6,8 @@ namespace SPC\builder\linux;
use SPC\builder\traits\UnixSystemUtilTrait;
use SPC\exception\RuntimeException;
use SPC\toolchain\ToolchainManager;
use SPC\toolchain\ZigToolchain;
class SystemUtil
{
@@ -231,8 +233,7 @@ class SystemUtil
public static function getExtraRuntimeObjects(): string
{
$cc = getenv('CC');
if (!$cc || !str_contains($cc, 'zig')) {
if (ToolchainManager::getToolchainClass() !== ZigToolchain::class) {
return '';
}