rake-compiler / rake-compiler-dock

Easy to use and reliable cross compiler environment for building Windows, Linux, Mac and JRuby binary gems.
MIT License
78 stars 30 forks source link

Support UCRT-based RubyInstaller-3.1 #61

Closed larskanis closed 2 years ago

larskanis commented 2 years ago

RubyInstaller-3.1.0-x64 will switch it's C-runtime from MSVCRT to UCRT. See feature request here.

The mingw-w64 cross toolchain of Ubuntu is MSVCRT only and there's no UCRT based toolchain for Ubuntu right now. So we need to build our own.

MSVCRT based ruby and UCRT differ by the ruby and gem platform string. It is x64-mingw-ucrt instead of x64-mingw32. So the plan is to add a new platform image for x64-mingw-ucrt and support only ruby-3.1 with it. To the contrary the old x64-mingw32 image shall support ruby-2.4 to 3.0 only.

larskanis commented 2 years ago

Support for UCRT based RubyInstaller-3.1.0 is implemented by commit https://github.com/rake-compiler/rake-compiler-dock/commit/1a88045a205d4b331d543a3b4c8f041f37cddd97 .