Skip to content

Commit

Permalink
windows/appveyor: Build mpy-cross only once for mingw-w64.
Browse files Browse the repository at this point in the history
The main Makefile builds the mpy-cross executable automatically if
it doesn't exist since 78718ff,
so build it first to make sure it doesn't get needlessly rebuilt.
  • Loading branch information
stinos committed Jan 10, 2022
1 parent ff0227f commit b47b245
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ports/windows/.appveyor.yml
Expand Up @@ -68,17 +68,16 @@ after_test:
}
$env:MSYSTEM = if ($platform -eq 'x86') {'MINGW32'} else {'MINGW64'}
$env:CHERE_INVOKING = 'enabled_from_arguments'
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 VARIANT=$($env:PyVariant)"
if ($LASTEXITCODE -ne 0) {
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
}
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'mpy-cross')
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1"
if ($LASTEXITCODE -ne 0) {
throw "$env:MSYSTEM mpy_cross build exited with code $LASTEXITCODE"
}
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 MICROPY_MPYCROSS=../../mpy-cross/mpy-cross.exe VARIANT=$($env:PyVariant)"
if ($LASTEXITCODE -ne 0) {
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
}
C:\msys64\usr\bin\bash.exe -l -c "make V=1 test_full VARIANT=$($env:PyVariant)"
if ($LASTEXITCODE -ne 0) {
& $env:MICROPY_CPYTHON3 run-tests.py --print-failures
Expand Down

0 comments on commit b47b245

Please sign in to comment.