aboutsummaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-08-29 16:56:00 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2019-09-01 22:58:33 +0300
commit5f9dccb9bce957979efa6efea961192a12f76790 (patch)
tree69ade28c0f718c3124b6dc33628d0c0e67f39217 /azure-pipelines.yml
parent2522af4b26dfead6c9d7a5f6d2ca02bea9ed865b (diff)
downloadmeson-5f9dccb9bce957979efa6efea961192a12f76790.zip
meson-5f9dccb9bce957979efa6efea961192a12f76790.tar.gz
meson-5f9dccb9bce957979efa6efea961192a12f76790.tar.bz2
azure: Workaround MSYS2 PCH test failures
Compiler version is hard-coded so that we remember to revisit this when the GCC version is updated. Closes https://github.com/mesonbuild/meson/issues/5807
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 6ddeb10..55b6972 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -197,6 +197,20 @@ jobs:
mingw-w64-$(MSYS2_ARCH)-python3-setuptools ^
%TOOLCHAIN%
displayName: Install Dependencies
+ - powershell: |
+ # https://github.com/mesonbuild/meson/issues/5807
+ # https://github.com/msys2/MINGW-packages/issues/5719#issuecomment-525845769
+ if ($env:compiler -eq 'gcc') {
+ (New-Object net.webclient).DownloadFile("https://github.com/mesonbuild/cidata/raw/master/win32/setdllcharacteristics.exe", "$(System.WorkFolder)\setdllcharacteristics.exe")
+ if ($env:MSYS2_ARCH -eq 'x86_64') {
+ $(System.WorkFolder)\setdllcharacteristics -d $env:MSYS2_ROOT\mingw64\lib\gcc\x86_64-w64-mingw32\9.2.0\cc1.exe
+ $(System.WorkFolder)\setdllcharacteristics -d $env:MSYS2_ROOT\mingw64\lib\gcc\x86_64-w64-mingw32\9.2.0\cc1plus.exe
+ } else {
+ $(System.WorkFolder)\setdllcharacteristics -d $env:MSYS2_ROOT\mingw32\lib\gcc\i686-w64-mingw32\9.2.0\cc1.exe
+ $(System.WorkFolder)\setdllcharacteristics -d $env:MSYS2_ROOT\mingw32\lib\gcc\i686-w64-mingw32\9.2.0\cc1plus.exe
+ }
+ }
+ displayName: MSYS2 PCH hack
- script: |
set BOOST_ROOT=
set PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem