8000 windows/appveyor: Build mpy-cross only once for mingw-w64. · DEVBOX10/micropython@b47b245 · GitHub
[go: up one dir, main page]

Skip to content

Commit b47b245

Browse files
committed
windows/appveyor: Build mpy-cross only once for mingw-w64.
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.
1 parent ff0227f commit b47b245

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ports/windows/.appveyor.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,16 @@ after_test:
6868
}
6969
$env:MSYSTEM = if ($platform -eq 'x86') {'MINGW32'} else {'MINGW64'}
7070
$env:CHERE_INVOKING = 'enabled_from_arguments'
71-
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
72-
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 VARIANT=$($env:PyVariant)"
73-
if ($LASTEXITCODE -ne 0) {
74-
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
75-
}
7671
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'mpy-cross')
7772
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1"
7873
if ($LASTEXITCODE -ne 0) {
7974
throw "$env:MSYSTEM mpy_cross build exited with code $LASTEXITCODE"
8075
}
8176
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
77+
C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 MICROPY_MPYCROSS=../../mpy-cross/mpy-cross.exe VARIANT=$($env:PyVariant)"
78+
if ($LASTEXITCODE -ne 0) {
79+
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
80+
}
8281
C:\msys64\usr\bin\bash.exe -l -c "make V=1 test_full VARIANT=$($env:PyVariant)"
8382
if ($LASTEXITCODE -ne 0) {
8483
& $env:MICROPY_CPYTHON3 run-tests.py --print-failures

0 commit comments

Comments
 (0)
0