mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
fix pkg-config build for macOS sonoma (#391)
* fix pkg-config build for macOS sonoma * cs fix * bump version to 2.1.6 [skip ci]
This commit is contained in:
parent
46984b6df1
commit
32f14e16c8
@ -25,7 +25,7 @@ use Symfony\Component\Console\Command\ListCommand;
|
|||||||
*/
|
*/
|
||||||
final class ConsoleApplication extends Application
|
final class ConsoleApplication extends Application
|
||||||
{
|
{
|
||||||
public const VERSION = '2.1.5';
|
public const VERSION = '2.1.6';
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -48,7 +48,7 @@ trait UnixLibraryTrait
|
|||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
* @throws WrongUsageException
|
* @throws WrongUsageException
|
||||||
*/
|
*/
|
||||||
public function makeAutoconfEnv(string $prefix = null): string
|
public function makeAutoconfEnv(?string $prefix = null): string
|
||||||
{
|
{
|
||||||
if ($prefix === null) {
|
if ($prefix === null) {
|
||||||
$prefix = str_replace('-', '_', strtoupper(static::NAME));
|
$prefix = str_replace('-', '_', strtoupper(static::NAME));
|
||||||
|
|||||||
@ -8,7 +8,7 @@ trait pkgconfig
|
|||||||
{
|
{
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
$macos_env = "CFLAGS='{$this->builder->arch_c_flags} -Wimplicit-function-declaration' ";
|
$macos_env = "CFLAGS='{$this->builder->arch_c_flags} -Wimplicit-function-declaration -Wno-int-conversion' ";
|
||||||
$linux_env = 'LDFLAGS=--static ';
|
$linux_env = 'LDFLAGS=--static ';
|
||||||
|
|
||||||
shell()->cd($this->source_dir)
|
shell()->cd($this->source_dir)
|
||||||
|
|||||||
@ -25,7 +25,7 @@ abstract class BaseCommand extends Command
|
|||||||
|
|
||||||
protected OutputInterface $output;
|
protected OutputInterface $output;
|
||||||
|
|
||||||
public function __construct(string $name = null)
|
public function __construct(?string $name = null)
|
||||||
{
|
{
|
||||||
parent::__construct($name);
|
parent::__construct($name);
|
||||||
$this->addOption('debug', null, null, 'Enable debug mode');
|
$this->addOption('debug', null, null, 'Enable debug mode');
|
||||||
|
|||||||
@ -8,7 +8,7 @@ use Symfony\Component\Console\Input\InputOption;
|
|||||||
|
|
||||||
abstract class BuildCommand extends BaseCommand
|
abstract class BuildCommand extends BaseCommand
|
||||||
{
|
{
|
||||||
public function __construct(string $name = null)
|
public function __construct(?string $name = null)
|
||||||
{
|
{
|
||||||
parent::__construct($name);
|
parent::__construct($name);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user