Skip to content

Instantly share code, notes, and snippets.

@aharpervc
Created May 18, 2015 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aharpervc/65b3588f5225a118e7a8 to your computer and use it in GitHub Desktop.
Save aharpervc/65b3588f5225a118e7a8 to your computer and use it in GitHub Desktop.
Cross build ruby 2.2
--- prepare_xrubies Mon May 18 12:09:54 2015
+++ prepare_xrubies_fixed Mon May 18 12:09:49 2015
@@ -41,5 +41,12 @@
# Build x64 Ruby 2.1
rake-compiler cross-ruby VERSION=2.1.4 HOST=x86_64-w64-mingw32 debugflags="-g"
+# Build 2.2.1 using >= 2.0 as base
+rvm use 2.0
+rake-compiler cross-ruby VERSION=2.2.1 HOST=i686-w64-mingw32 debugflags="-g"
+
+# Build x64 Ruby 2.2.1
+rake-compiler cross-ruby VERSION=2.2.1 HOST=x86_64-w64-mingw32 debugflags="-g"
+
# Mark installation prepared and don't run all this again
touch "$HOME/.rake-compiler/.prepared"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment