From 608f4df1e6aac75f830472ead9ad35fad9cf0f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Tue, 3 Oct 2023 14:33:29 +0200 Subject: [PATCH] Builders: Use "posix" variant of the mingw64 cross compiler The mingw64 cross compiler lacks support at least for "std:future" feature in C++ (https://sourceforge.net/p/mingw-w64/bugs/959/). Debian offers a "posix" variant which implements it. --- builders/Dockerfile.mingw64 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/builders/Dockerfile.mingw64 b/builders/Dockerfile.mingw64 index 5681014..e782463 100644 --- a/builders/Dockerfile.mingw64 +++ b/builders/Dockerfile.mingw64 @@ -47,7 +47,13 @@ RUN set -ex && \ # install NSIS and exiftool to inspect binary metadata nsis libimage-exiftool-perl osslsigncode \ # Geany build dependencies \ - python3-lxml python3-docutils + python3-lxml python3-docutils && \ + # Use the "posix" variant of the mingw64 cross compiler to have support for recent C++ features + # like "std:future", see + # https://salsa.debian.org/mingw-w64-team/gcc-mingw-w64/-/blob/master/debian/gcc-mingw-w64-base.README.Debian + # and https://sourceforge.net/p/mingw-w64/bugs/959/ for details. + update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix && \ + update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix # copy scripts