mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
cs fix, where did that come from?
This commit is contained in:
@@ -16,7 +16,6 @@ use SPC\store\CurlHook;
|
|||||||
use SPC\store\Downloader;
|
use SPC\store\Downloader;
|
||||||
use SPC\store\FileSystem;
|
use SPC\store\FileSystem;
|
||||||
use SPC\store\pkg\GoXcaddy;
|
use SPC\store\pkg\GoXcaddy;
|
||||||
use SPC\store\pkg\Zig;
|
|
||||||
use SPC\util\DependencyUtil;
|
use SPC\util\DependencyUtil;
|
||||||
use SPC\util\GlobalEnvManager;
|
use SPC\util\GlobalEnvManager;
|
||||||
use SPC\util\SPCConfigUtil;
|
use SPC\util\SPCConfigUtil;
|
||||||
@@ -100,8 +99,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
if ($lib instanceof LinuxLibraryBase || $lib instanceof MacOSLibraryBase || $lib instanceof BSDLibraryBase) {
|
if ($lib instanceof LinuxLibraryBase || $lib instanceof MacOSLibraryBase || $lib instanceof BSDLibraryBase) {
|
||||||
logger()->info("{$name} \033[32;1mwith\033[0;1m {$libName} support");
|
logger()->info("{$name} \033[32;1mwith\033[0;1m {$libName} support");
|
||||||
$ret .= "--with-{$libName}=yes " . $lib->makeAutoconfEnv($prefix) . ' ';
|
$ret .= "--with-{$libName}=yes " . $lib->makeAutoconfEnv($prefix) . ' ';
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
logger()->info("{$name} \033[31;1mwithout\033[0;1m {$libName} support");
|
logger()->info("{$name} \033[31;1mwithout\033[0;1m {$libName} support");
|
||||||
$ret .= ($disableArgs ?? "--with-{$libName}=no") . ' ';
|
$ret .= ($disableArgs ?? "--with-{$libName}=no") . ' ';
|
||||||
}
|
}
|
||||||
@@ -215,8 +213,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
if (getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'shared') {
|
if (getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'shared') {
|
||||||
$ext_path = 'LD_LIBRARY_PATH=' . BUILD_ROOT_PATH . '/lib:$LD_LIBRARY_PATH ';
|
$ext_path = 'LD_LIBRARY_PATH=' . BUILD_ROOT_PATH . '/lib:$LD_LIBRARY_PATH ';
|
||||||
FileSystem::removeFileIfExists(BUILD_ROOT_PATH . '/lib/libphp.a');
|
FileSystem::removeFileIfExists(BUILD_ROOT_PATH . '/lib/libphp.a');
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$ext_path = '';
|
$ext_path = '';
|
||||||
FileSystem::removeFileIfExists(BUILD_ROOT_PATH . '/lib/libphp.so');
|
FileSystem::removeFileIfExists(BUILD_ROOT_PATH . '/lib/libphp.so');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user