fix enable-zts option error on build:libs command

This commit is contained in:
crazywhalecc 2023-06-02 21:19:17 +08:00
parent f2ef783b13
commit 9e71a98eda
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -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'),
}; };