Skip to content

Commit

Permalink
windows/appveyor: Clean all artefacts before starting mingw builds.
Browse files Browse the repository at this point in the history
Fixes issues like using moduledefs.h or qstrdefs.h from previous builds
in builds with different options, leading to undefined symbols etc.

Signed-off-by: stijn <[email protected]>
  • Loading branch information
stinos committed Oct 26, 2023
1 parent a0f72d7 commit 3abc90c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ports/windows/.appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ after_test:
if ($LASTEXITCODE -ne 0) {
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
}
# Because 'make -B' doesn't remove genhdr from previous builds.
C:\msys64\usr\bin\bash.exe -l -c "make V=1 VARIANT=$($env:PyVariant) clean"
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 MICROPY_MPYCROSS=../../mpy-cross/build/mpy-cross.exe VARIANT=$($env:PyVariant)"
if ($LASTEXITCODE -ne 0) {
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
Expand Down

0 comments on commit 3abc90c

Please sign in to comment.