From 4fbab013f9c21d07f9a14b7fcf121547992fcad2 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Tue, 7 May 2024 17:11:27 -0500 Subject: [PATCH] (fix) building gems on windows x86 --- configs/components/ruby-2.7.8.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/components/ruby-2.7.8.rb b/configs/components/ruby-2.7.8.rb index 73936bd9b..9af699e1e 100644 --- a/configs/components/ruby-2.7.8.rb +++ b/configs/components/ruby-2.7.8.rb @@ -237,7 +237,11 @@ elsif platform.is_macos? && platform.architecture == 'arm64' && platform.os_version.to_i >= 13 rbconfig_changes["CC"] = 'clang' elsif platform.is_windows? - rbconfig_changes["CC"] = "x86_64-w64-mingw32-gcc" + if platform.architecture == "x64" + rbconfig_changes["CC"] = "x86_64-w64-mingw32-gcc" + else + rbconfig_changes["CC"] = "i686-w64-mingw32-gcc" + end end pkg.add_source("file://resources/files/ruby_vendor_gems/operating_system.rb")