mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
Remove dll before sanity check (#459)
This commit is contained in:
@@ -261,6 +261,12 @@ class WindowsBuilder extends BuilderBase
|
||||
*/
|
||||
public function sanityCheck(mixed $build_target): void
|
||||
{
|
||||
// remove all .dll from `buildroot/bin/`
|
||||
logger()->debug('Removing all .dll files from buildroot/bin/');
|
||||
$dlls = glob(BUILD_BIN_PATH . '\*.dll');
|
||||
foreach ($dlls as $dll) {
|
||||
@unlink($dll);
|
||||
}
|
||||
// sanity check for php-cli
|
||||
if (($build_target & BUILD_TARGET_CLI) === BUILD_TARGET_CLI) {
|
||||
logger()->info('running cli sanity check');
|
||||
|
||||
Reference in New Issue
Block a user