mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 09:55:37 +08:00
fix cs
This commit is contained in:
@@ -24,14 +24,14 @@ trait ngtcp2
|
|||||||
'libev' => null,
|
'libev' => null,
|
||||||
'jemalloc' => null,
|
'jemalloc' => null,
|
||||||
];
|
];
|
||||||
if ($this->builder instanceof LinuxBuilder) {
|
if (PHP_OS_FAMILY === 'Linux') {
|
||||||
$available = [...$available, ...[
|
$available = [...$available, ...[
|
||||||
'zlib' => null,
|
'zlib' => null,
|
||||||
'libxml2' => null,
|
'libxml2' => null,
|
||||||
]];
|
]];
|
||||||
}
|
}
|
||||||
$args = $this->builder->makeAutoconfArgs(static::NAME, $available);
|
$args = $this->builder->makeAutoconfArgs(static::NAME, $available);
|
||||||
if ($this->builder instanceof MacOSBuilder) {
|
if (PHP_OS_FAMILY === 'Darwin') {
|
||||||
$args = str_replace('=yes', '=' . BUILD_ROOT_PATH, $args);
|
$args = str_replace('=yes', '=' . BUILD_ROOT_PATH, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +53,6 @@ trait ngtcp2
|
|||||||
->execWithEnv('make clean')
|
->execWithEnv('make clean')
|
||||||
->execWithEnv("make -j{$this->builder->concurrency}")
|
->execWithEnv("make -j{$this->builder->concurrency}")
|
||||||
->execWithEnv('make install DESTDIR=' . BUILD_ROOT_PATH);
|
->execWithEnv('make install DESTDIR=' . BUILD_ROOT_PATH);
|
||||||
$this->patchPkgconfPrefix(['libngtcp2.pc']);
|
$this->patchPkgconfPrefix(['libngtcp2.pc', 'libngtcp2_crypto_ossl.pc']);
|
||||||
$this->patchPkgconfPrefix(['libngtcp2_crypto_ossl.pc']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user