-
-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor cross rubies (Act 2) #1072
Conversation
IN_LIBXML is not necessary when configured with --enable-static, at least for libxml-2.8. Hardcoded libraries to link to are obsolete since knu switched to xml2-config.
Remove cross ruby version checks, since they are obsoleted with the verify_dll method. Add verify_dll to the standard rake-compiler 'cross native gem' tasks, so that it's more compatible with the package_win32_fat_binary command of the rake-compiler-dev-box. Suggest using the rake-compiler-dev-box if no cross rubies are installed, because this is probably the most easiest way to build a proper cross compilation environment.
- CrossRuby#tool returns the name of a binutils command. - RUBY_CC_VERSION is built from .cross_ruby. - Properly escape strings using Regexp.quote and String#shelljoin.
Conflicts: Rakefile
I confirmed that build_all succeeded without a problem and put the built gems on my personal and experimental gem source site, https://gems.idaemons.org/. |
These changes look sensible to me. Ship it! |
Thanks, I'm merging this. |
@knu are we dropping support for mswin32 ? All versions in the |
@jvshahid Yes, support for mswin32-60 is removed. It was the platform of the old One Click Installer with Ruby versions up to 1.8.6, compiled with MSVC++ V6.0. Cross built versions of x86-mingw32 and mswin32-60 always differed only by the gemspec. Here is what Luis Lavena as the maintainer of RubyInstaller think about it: tjschuck/rake-compiler-dev-box@ebec11e25 |
@jvshahid @larskanis is correct, I believe is time to drop the backward compatible If you had a built of Ruby with newer Visual Studio, it will be something greater than Compatibility with MSVCRT other than 6.0 ( |
@luislavena @knu -- got it! Makes sense. It was only put in there originally at @luislavena's request, anyway. :-P |
@flavorjones I know 😁, good thing we can change stuff over time 😉 |
[This is a redone version of #1071 which was accidentally closed by mistake.]
This fixes the following problems with the current cross-build scripts,
Rakefile
andbuild_all
.rake-compiler cross-ruby
will fail due to version mismatchWith this PR merged,
./build_all
should pass without a problem on a rake-compiler-dev-box environment except one problem which should be addressed in flavorjones/mini_portile#30.This branch is (re)based on #1062.
/cc @larskanis, @flavorjones