Skip to content
Snippets Groups Projects
Unverified Commit e46eabb6 authored by Esun Kim's avatar Esun Kim Committed by GitHub
Browse files

Merge pull request #21317 from veblush/ruby-mingw

Update ruby docker image to use pthread for win32
parents 631fe79f c4f80b8c
No related branches found
No related tags found
No related merge requests found
......@@ -11,4 +11,12 @@ RUN apt-get install -y g++-multilib
# generated ruby package can run on CentOS 6 with GLIBC 2.12
RUN sed -i 's/__GLIBC_MINOR__\t23/__GLIBC_MINOR__\t12/' /usr/include/features.h
# Use posix pthread for mingw so that C++ standard library for thread could be
# available such as std::thread, std::mutex, so on.
# https://sourceware.org/pthreads-win32/
RUN printf "1\n" | update-alternatives --config x86_64-w64-mingw32-gcc && \
printf "1\n" | update-alternatives --config x86_64-w64-mingw32-g++ && \
printf "1\n" | update-alternatives --config i686-w64-mingw32-gcc && \
printf "1\n" | update-alternatives --config i686-w64-mingw32-g++
CMD bash
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment