isBuilt($libDir)) { return CheckResult::ok($libDir); } return CheckResult::fail('llvm-compiler-rt is not built for ' . SystemTarget::getCanonicalTriple(), 'build-llvm-compiler-rt'); } #[FixItem('build-llvm-compiler-rt')] public function fixLlvmCompilerRt(): bool { $installer = new PackageInstaller(interactive: false); $installer->addInstallPackage('llvm-compiler-rt'); $installer->run(true); new llvm_compiler_rt()->buildForTriple(); $libDir = zig::path() . '/lib/' . SystemTarget::getCanonicalTriple(); return new llvm_compiler_rt()->isBuilt($libDir); } }