mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 18:35:35 +08:00
revert macos mistake
This commit is contained in:
@@ -134,7 +134,8 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
FileSystem::removeFileIfExists(BUILD_LIB_PATH . '/libphp.a');
|
FileSystem::removeFileIfExists(BUILD_LIB_PATH . '/libphp.a');
|
||||||
} else {
|
} else {
|
||||||
$ext_path = '';
|
$ext_path = '';
|
||||||
foreach (glob(BUILD_LIB_PATH . '/libphp*.so') as $file) {
|
$suffix = PHP_OS_FAMILY === 'Darwin' ? 'dylib' : 'so';
|
||||||
|
foreach (glob(BUILD_LIB_PATH . "/libphp*.{$suffix}") as $file) {
|
||||||
unlink($file);
|
unlink($file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user