mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
Prevent use building uv on 7.4 (#471)
* Prevent use building uv on 7.4 * Add swoole test * Use github source for libcares * Add libcares missing file patch * Add libcares missing file patch
This commit is contained in:
@@ -5,9 +5,20 @@ declare(strict_types=1);
|
||||
namespace SPC\builder\unix\library;
|
||||
|
||||
use SPC\exception\RuntimeException;
|
||||
use SPC\store\FileSystem;
|
||||
|
||||
trait libcares
|
||||
{
|
||||
public function patchBeforeBuild(): bool
|
||||
{
|
||||
if (!file_exists($this->source_dir . '/src/lib/thirdparty/apple/dnsinfo.h')) {
|
||||
FileSystem::createDir($this->source_dir . '/src/lib/thirdparty/apple');
|
||||
copy(ROOT_DIR . '/src/globals/extra/libcares_dnsinfo.h', $this->source_dir . '/src/lib/thirdparty/apple/dnsinfo.h');
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws RuntimeException
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user