mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Remove dll before sanity check (#459)
This commit is contained in:
parent
4ba92b08ca
commit
5d2bd93bd7
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user