mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-18 14:25:35 +08:00
Compare commits
2 Commits
2.1.5
...
d445668d9f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d445668d9f | ||
|
|
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()
|
||||||
{
|
{
|
||||||
@@ -33,6 +33,7 @@ final class ConsoleApplication extends Application
|
|||||||
|
|
||||||
$this->addCommands(
|
$this->addCommands(
|
||||||
[
|
[
|
||||||
|
// Common commands
|
||||||
new BuildCliCommand(),
|
new BuildCliCommand(),
|
||||||
new BuildLibsCommand(),
|
new BuildLibsCommand(),
|
||||||
new DoctorCommand(),
|
new DoctorCommand(),
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user