mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-13 03:45:37 +08:00
fix enable-zts option error on build:libs command
This commit is contained in:
@@ -31,13 +31,13 @@ class BuilderProvider
|
|||||||
cc: $input->getOption('cc'),
|
cc: $input->getOption('cc'),
|
||||||
cxx: $input->getOption('cxx'),
|
cxx: $input->getOption('cxx'),
|
||||||
arch: $input->getOption('arch'),
|
arch: $input->getOption('arch'),
|
||||||
zts: $input->getOption('enable-zts'),
|
zts: $input->hasOption('enable-zts') ? $input->getOption('enable-zts') : false,
|
||||||
),
|
),
|
||||||
'Linux' => new LinuxBuilder(
|
'Linux' => new LinuxBuilder(
|
||||||
cc: $input->getOption('cc'),
|
cc: $input->getOption('cc'),
|
||||||
cxx: $input->getOption('cxx'),
|
cxx: $input->getOption('cxx'),
|
||||||
arch: $input->getOption('arch'),
|
arch: $input->getOption('arch'),
|
||||||
zts: $input->getOption('enable-zts'),
|
zts: $input->hasOption('enable-zts') ? $input->getOption('enable-zts') : false,
|
||||||
),
|
),
|
||||||
default => throw new WrongUsageException('Current OS "' . PHP_OS_FAMILY . '" is not supported yet'),
|
default => throw new WrongUsageException('Current OS "' . PHP_OS_FAMILY . '" is not supported yet'),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user