"zig-cc" cannot create shared objects according to conftests...

This commit is contained in:
DubbleClick
2025-07-26 23:14:29 +07:00
parent d0d51ccf82
commit e1edaa24cc
2 changed files with 8 additions and 2 deletions

View File

@@ -16,7 +16,13 @@ class Zig extends CustomPackage
public static function isInstalled(): bool
{
$path = self::getPath();
return file_exists("{$path}/zig") && file_exists("{$path}/zig-cc") && file_exists("{$path}/zig-c++");
$files = ['zig', 'zig-cc', 'zig-c++', 'zig-ar', 'zig-ranlib', 'zig-objcopy'];
foreach ($files as $file) {
if (!file_exists("{$path}/{$file}")) {
return false;
}
}
return true;
}
public function getSupportName(): array