Skip to content

Commit

Permalink
(fix) building gems on windows x86
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed May 7, 2024
1 parent 45ab2a8 commit 4fbab01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configs/components/ruby-2.7.8.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4fbab01

Please sign in to comment.