1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(build): Add std threading support in Windows build

Use posix versions of mingw toolchains, which say:
> This package contains the C++ compiler, supporting cross-compiling to
64-bit MinGW-w64 targets, using the POSIX threading model.

Fix build failure saying that std::mutex was not declared
This commit is contained in:
Anthony Bilinski 2021-10-24 04:53:56 -07:00
parent aee189d46d
commit 057f921ace
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -152,11 +152,15 @@ then
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
g++-mingw-w64-i686 \ g++-mingw-w64-i686 \
gcc-mingw-w64-i686 gcc-mingw-w64-i686
update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
elif [[ "$ARCH" == "x86_64" ]] elif [[ "$ARCH" == "x86_64" ]]
then then
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
g++-mingw-w64-x86-64 \ g++-mingw-w64-x86-64 \
gcc-mingw-w64-x86-64 gcc-mingw-w64-x86-64
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
fi fi