forked from grpc/grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for prebuilt Ruby binary on x64-mingw-ucrt platform (grpc#29684)
* Add support for prebuilt Ruby binary on x64-mingw-ucrt platform, which is used for Windows RubyInstaller Ruby 3.1+
- Loading branch information
1 parent
b7699ef
commit 6d33399
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
third_party/rake-compiler-dock/rake_x64-mingw-ucrt/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM larskanis/rake-compiler-dock-mri-x64-mingw-ucrt:1.2.1 | ||
|
||
RUN find / -name win32.h | while read f ; do sed -i 's/gettimeofday/rb_gettimeofday/' $f ; done | ||
|
||
#================= | ||
# Install ccache | ||
|
||
# Install ccache from source since ccache 3.x packaged with most linux distributions | ||
# does not support Redis backend for caching. | ||
RUN curl -sSL -o ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.5.1/ccache-4.5.1.tar.gz \ | ||
&& tar -zxf ccache.tar.gz \ | ||
&& cd ccache-4.5.1 \ | ||
&& mkdir build && cd build \ | ||
&& cmake -DCMAKE_BUILD_TYPE=Release -DZSTD_FROM_INTERNET=ON -DHIREDIS_FROM_INTERNET=ON .. \ | ||
&& make -j4 && make install \ | ||
&& cd ../.. \ | ||
&& rm -rf ccache-4.5.1 ccache.tar.gz |