Skip to content

Commit 244e219

Browse files
nurupoiphydf
authored andcommitted
Fix Windows build failing due to missing std::mutex
1 parent 6ea17e8 commit 244e219

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

other/docker/windows/get_packages.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ if [ "$SUPPORT_ARCH_i686" = "true" ]; then
2525
apt-get install -y \
2626
g++-mingw-w64-i686 \
2727
gcc-mingw-w64-i686
28+
update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
29+
update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
2830
fi
2931

3032
if [ "$SUPPORT_ARCH_x86_64" = "true" ]; then
3133
apt-get install -y \
3234
g++-mingw-w64-x86-64 \
3335
gcc-mingw-w64-x86-64
36+
update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
37+
update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
3438
fi
3539

3640
# Packages needed for running toxcore tests

0 commit comments

Comments
 (0)