adjust craft command for zig

This commit is contained in:
DubbleClick
2025-06-28 22:55:30 +07:00
parent 9e9474a026
commit 02f2837f86
2 changed files with 18 additions and 9 deletions

View File

@@ -71,7 +71,16 @@ class CraftCommand extends BaseCommand
$retcode = $this->runCommand('install-pkg', 'go-xcaddy');
if ($retcode !== 0) {
$this->output->writeln('<error>craft go-xcaddy failed</error>');
$this->log("craft go-xcaddy failed with code: {$retcode}", true);
$this->log("craft: spc install-pkg go-xcaddy failed with code: {$retcode}", true);
return static::FAILURE;
}
}
// install zig if requested
if (str_contains(getenv('CC'), 'zig')) {
$retcode = $this->runCommand('install-pkg', 'zig');
if ($retcode !== 0) {
$this->output->writeln('<error>craft zig failed</error>');
$this->log("craft: spc install-pkg zig failed with code: {$retcode}", true);
return static::FAILURE;
}
}