mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
Add PHP_BUILD_COMPILER for different toolchain
This commit is contained in:
@@ -68,4 +68,10 @@ class ZigToolchain implements ToolchainInterface
|
||||
GlobalEnvManager::putenv("SPC_EXTRA_LIBS={$extra_libs}");
|
||||
}
|
||||
}
|
||||
|
||||
public function getCompilerInfo(): ?string
|
||||
{
|
||||
$version = shell(false)->execWithResult('zig version', false)[1][0] ?? '';
|
||||
return trim("zig {$version}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user