Remove dll before sanity check (#459)

This commit is contained in:
Jerry Ma 2024-05-21 18:09:41 +08:00 committed by GitHub
parent 4ba92b08ca
commit 5d2bd93bd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');