Skip to content

Commit f969ff6

Browse files
committed
Use Ruby 1.9.3 now as base for cross-compilation
In the past, the only version that was capable of cross-compile and target 1.8.7 was *just* 1.8.7. But now, 1.8.7 is no longer capable of cross-compile to 2.1.x, which put us in a weird situation for those gems that still need or want to support 1.8.7 After some testing, seems that Ruby developers have patched the issues around `mkmf` and backported into Ruby 1.9.3, which is now capable of cross-compile to Ruby 1.8.7, yay! Once again, regressions that are not regressions and happy endings for those who still are forced to maintain compatibility with Ruby 1.8.7.
1 parent bdc9b74 commit f969ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/package_win32_fat_binary

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ cd '/vagrant'
1212
# passed in path of gem to be cross-compiled
1313
cd $1
1414

15-
base_version=${BASE_VERSION:-1.8.7-p374}
15+
base_version=${BASE_VERSION:-1.9.3}
1616
cc_versions=${RUBY_CC_VERSION:-1.8.7:1.9.3:2.0.0:2.1.4}
1717

18-
# need to use 1.8.7 for fat-binaries (1.9.3 can't cross-build 1.8.7)
18+
# Use Ruby 1.9.3 as base to cross-compile to different versions
1919
rvm use $base_version
2020
bundle install
2121

0 commit comments

Comments
 (0)