mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
Add a check for macports alongside Brew in toolchainmanager
This commit is contained in:
@@ -41,6 +41,7 @@ class ToolchainManager
|
||||
'Windows' => MSVCToolchain::class,
|
||||
'Darwin' => match (getenv('SPC_USE_LLVM') ?: 'system') {
|
||||
'brew' => ClangBrewToolchain::class,
|
||||
'port' => ClangPortsToolchain::class,
|
||||
default => ClangNativeToolchain::class,
|
||||
},
|
||||
default => throw new WrongUsageException('Unsupported OS family: ' . PHP_OS_FAMILY),
|
||||
|
||||
Reference in New Issue
Block a user