add zts support

This commit is contained in:
crazywhalecc
2023-05-17 22:19:28 +08:00
parent 6d638f3721
commit 1b6d0e35ea
4 changed files with 7 additions and 2 deletions

View File

@@ -31,11 +31,13 @@ class BuilderProvider
cc: $input->getOption('cc'),
cxx: $input->getOption('cxx'),
arch: $input->getOption('arch'),
zts: $input->getOption('enable-zts'),
),
'Linux' => new LinuxBuilder(
cc: $input->getOption('cc'),
cxx: $input->getOption('cxx'),
arch: $input->getOption('arch'),
zts: $input->getOption('enable-zts'),
),
default => throw new WrongUsageException('Current OS "' . PHP_OS_FAMILY . '" is not supported yet'),
};