Skip to content

Commit 4fbab01

Browse files
committed
(fix) building gems on windows x86
1 parent 45ab2a8 commit 4fbab01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

configs/components/ruby-2.7.8.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,11 @@
237237
elsif platform.is_macos? && platform.architecture == 'arm64' && platform.os_version.to_i >= 13
238238
rbconfig_changes["CC"] = 'clang'
239239
elsif platform.is_windows?
240-
rbconfig_changes["CC"] = "x86_64-w64-mingw32-gcc"
240+
if platform.architecture == "x64"
241+
rbconfig_changes["CC"] = "x86_64-w64-mingw32-gcc"
242+
else
243+
rbconfig_changes["CC"] = "i686-w64-mingw32-gcc"
244+
end
241245
end
242246

243247
pkg.add_source("file://resources/files/ruby_vendor_gems/operating_system.rb")

0 commit comments

Comments
 (0)