adjust swow patch time

This commit is contained in:
crazywhalecc 2023-03-19 01:17:16 +08:00
parent 6b0baa8365
commit d8a1a3c838
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -214,6 +214,10 @@ class FetchSourceCommand extends BaseCommand
*/
private function doPatch(): void
{
// swow 需要软链接内部的文件夹才能正常编译
if (!file_exists(SOURCE_PATH . '/php-src/ext/swow')) {
Patcher::patchSwow();
}
// patch 一些 PHP 的资源,以便编译
Patcher::patchPHPDepFiles();
@ -228,11 +232,6 @@ class FetchSourceCommand extends BaseCommand
Patcher::patchDarwinOpenssl11();
}
// swow 需要软链接内部的文件夹才能正常编译
if (!file_exists(SOURCE_PATH . '/php-src/ext/swow')) {
Patcher::patchSwow();
}
// 标记 patch 完成,避免重复 patch
file_put_contents(SOURCE_PATH . '/.patched', '');
}