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:
Jerry Ma
2024-06-04 12:24:52 +08:00
committed by GitHub
parent d258417afb
commit 036e4f52b7
6 changed files with 168 additions and 5 deletions

View File

@@ -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
*/