Skip to content

Commit

Permalink
Use "posix" variant of the mingw64 cross compiler
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eht16 committed Oct 3, 2023
1 parent 2e97003 commit 85d8393
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builders/Dockerfile.mingw64
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85d8393

Please sign in to comment.