Skip to content

Commit abe77ae

Browse files
committed
Backport: Ruby: support x64-mingw-ucrt platform, which is the new platform which Windows Ruby Installer uses as of Ruby 3.1
1 parent bb7e582 commit abe77ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ else
103103
ext.lib_dir = "lib/google"
104104
ext.cross_compile = true
105105
ext.cross_platform = [
106-
'x86-mingw32', 'x64-mingw32',
106+
'x86-mingw32', 'x64-mingw32', 'x64-mingw-ucrt',
107107
'x86_64-linux', 'x86-linux',
108108
'x86_64-darwin', 'arm64-darwin',
109109
]
@@ -126,7 +126,7 @@ else
126126
task 'gem:windows' do
127127
sh "rm Gemfile.lock"
128128
require 'rake_compiler_dock'
129-
['x86-mingw32', 'x64-mingw32', 'x86_64-linux', 'x86-linux'].each do |plat|
129+
['x86-mingw32', 'x64-mingw32', 'x64-mingw-ucrt', 'x86_64-linux', 'x86-linux'].each do |plat|
130130
RakeCompilerDock.sh <<-"EOT", platform: plat
131131
bundle && \
132132
IN_DOCKER=true rake native:#{plat} pkg/#{spec.full_name}-#{plat}.gem RUBY_CC_VERSION=3.1.0:3.0.0:2.7.0:2.6.0:2.5.0

0 commit comments

Comments
 (0)