Skip to content

Commit

Permalink
Remove dll before sanity check (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc authored May 21, 2024
1 parent 4ba92b0 commit 5d2bd93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SPC/builder/windows/WindowsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ public function cleanMake(): void
*/
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');
Expand Down

0 comments on commit 5d2bd93

Please sign in to comment.