|
16 | 16 | use SPC\store\Downloader; |
17 | 17 | use SPC\store\FileSystem; |
18 | 18 | use SPC\store\pkg\GoXcaddy; |
19 | | -use SPC\store\pkg\Zig; |
20 | 19 | use SPC\util\DependencyUtil; |
21 | 20 | use SPC\util\GlobalEnvManager; |
22 | 21 | use SPC\util\SPCConfigUtil; |
@@ -54,7 +53,7 @@ public function getAllStaticLibFiles(): array |
54 | 53 | array_unshift($libFiles, ...$lib->getStaticLibs()); |
55 | 54 | } |
56 | 55 | } |
57 | | - return array_map(fn($x) => realpath(BUILD_LIB_PATH . "/{$x}"), $libFiles); |
| 56 | + return array_map(fn ($x) => realpath(BUILD_LIB_PATH . "/{$x}"), $libFiles); |
58 | 57 | } |
59 | 58 |
|
60 | 59 | /** |
@@ -100,8 +99,7 @@ public function makeAutoconfArgs(string $name, array $libSpecs): string |
100 | 99 | if ($lib instanceof LinuxLibraryBase || $lib instanceof MacOSLibraryBase || $lib instanceof BSDLibraryBase) { |
101 | 100 | logger()->info("{$name} \033[32;1mwith\033[0;1m {$libName} support"); |
102 | 101 | $ret .= "--with-{$libName}=yes " . $lib->makeAutoconfEnv($prefix) . ' '; |
103 | | - } |
104 | | - else { |
| 102 | + } else { |
105 | 103 | logger()->info("{$name} \033[31;1mwithout\033[0;1m {$libName} support"); |
106 | 104 | $ret .= ($disableArgs ?? "--with-{$libName}=no") . ' '; |
107 | 105 | } |
@@ -215,8 +213,7 @@ protected function sanityCheck(int $build_target): void |
215 | 213 | if (getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'shared') { |
216 | 214 | $ext_path = 'LD_LIBRARY_PATH=' . BUILD_ROOT_PATH . '/lib:$LD_LIBRARY_PATH '; |
217 | 215 | FileSystem::removeFileIfExists(BUILD_ROOT_PATH . '/lib/libphp.a'); |
218 | | - } |
219 | | - else { |
| 216 | + } else { |
220 | 217 | $ext_path = ''; |
221 | 218 | FileSystem::removeFileIfExists(BUILD_ROOT_PATH . '/lib/libphp.so'); |
222 | 219 | } |
@@ -245,7 +242,7 @@ protected function sanityCheck(int $build_target): void |
245 | 242 | /** |
246 | 243 | * 将编译好的二进制文件发布到 buildroot |
247 | 244 | * |
248 | | - * @param int $type 发布类型 |
| 245 | + * @param int $type 发布类型 |
249 | 246 | * @throws RuntimeException |
250 | 247 | * @throws FileSystemException |
251 | 248 | */ |
|
0 commit comments