mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +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,
|
'Windows' => MSVCToolchain::class,
|
||||||
'Darwin' => match (getenv('SPC_USE_LLVM') ?: 'system') {
|
'Darwin' => match (getenv('SPC_USE_LLVM') ?: 'system') {
|
||||||
'brew' => ClangBrewToolchain::class,
|
'brew' => ClangBrewToolchain::class,
|
||||||
|
'port' => ClangPortsToolchain::class,
|
||||||
default => ClangNativeToolchain::class,
|
default => ClangNativeToolchain::class,
|
||||||
},
|
},
|
||||||
default => throw new WrongUsageException('Unsupported OS family: ' . PHP_OS_FAMILY),
|
default => throw new WrongUsageException('Unsupported OS family: ' . PHP_OS_FAMILY),
|
||||||
|
|||||||
Reference in New Issue
Block a user