mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 15:55:39 +08:00
Add homebrew llvm version toolchain support
This commit is contained in:
@@ -39,7 +39,10 @@ class ToolchainManager
|
||||
return match (PHP_OS_FAMILY) {
|
||||
'Linux' => ZigToolchain::class,
|
||||
'Windows' => MSVCToolchain::class,
|
||||
'Darwin' => ClangNativeToolchain::class,
|
||||
'Darwin' => match (getenv('SPC_USE_LLVM') ?: 'system') {
|
||||
'brew' => ClangBrewToolchain::class,
|
||||
default => ClangNativeToolchain::class,
|
||||
},
|
||||
default => throw new WrongUsageException('Unsupported OS family: ' . PHP_OS_FAMILY),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user