From dce2061dc3008290336bd153f9801ba28609096c Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 28 Feb 2023 10:31:37 +0200 Subject: [PATCH] Incorrect syntax for Windows. --- appveyor.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 1a5daa91b..b910687b1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -323,11 +323,6 @@ for: - path - set QTDIR=C:\%QT% - set PATH=%QTDIR%\bin;%QTDIR%\include;C:\Qt\Tools\QtCreator\bin;C:\Tools\PsTools;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Git LFS;C:\Tools\GitVersion;C:\Windows\system32;C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CMake\bin;%PYTHON%;%PYTHON%\Scripts - - | - if [[ "$MSYS2_PACKAGES" == "true" ]]; then - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"; - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make" - fi # Set VC variables for the platform - ps: | if ($env:COMPILER -eq "msvc") { @@ -349,6 +344,10 @@ for: } } } else { + if ($env:MSYS2_PACKAGES -eq "true") { + & 'C:\msys64\usr\bin\bash' -lc "pacman --noconfirm -Syuu" + & 'C:\msys64\usr\bin\bash' -lc "pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make" + } $env:Path += ";$env:MINGW_PATH" $env:CC = "gcc.exe" $env:CXX = "g++.exe"