Skip to content

Commit c2410ff

Browse files
committed
Remove this ugly hack:
- Ruby 3.0 uses a different C-runtime (MSVCRT), the platform is called `mingw32`, on Ruby 3.1+ the C-runtime is UCRT. When we run rake compile with Ruby 3.0 and try to create a fat gem for 3.1+ we end up with a broken binary. Ref https://rubyinstaller.org/2021/12/31/rubyinstaller-3.1.0-1-released.html
1 parent 4e057bc commit c2410ff

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/easy_compile/compilation_tasks.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ def normalized_platform
3838

3939
if darwin?
4040
RUBY_PLATFORM.sub(/(.*-darwin)\d+/, '\1')
41-
elsif win_platform?
42-
RUBY_PLATFORM.sub(/mingw32/, 'mingw-ucrt')
4341
else
4442
platform
4543
end

0 commit comments

Comments
 (0)