The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Cross-compiling Ruby extensions for win32: rcovrt

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eigen Class

Posts: 358
Nickname: eigenclass
Registered: Oct, 2005

Eigenclass is a hardcore Ruby blog.
Cross-compiling Ruby extensions for win32: rcovrt Posted: Apr 3, 2006 9:40 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eigen Class.
Original Post: Cross-compiling Ruby extensions for win32: rcovrt
Feed Title: Eigenclass
Feed URL: http://feeds.feedburner.com/eigenclass
Feed Description: Ruby stuff --- trying to stay away from triviality.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eigen Class
Latest Posts From Eigenclass

Advertisement

It seems that building Ruby extensions under win32 is quite a daunting task: I've been asked repeatedly to provide win32 binaries for rcovrt (the extension that makes rcov's code coverage analysis run two orders of magnitude faster*1), so I cross-compiled it from the comfort of a non-win32 platform, using mingw.

Binaries built with mingw should be compatible with the ruby-mswin32 distribution, which also means they should work fine with the latest one-click-installer distros (the 1.8.4-16 series), since they are based on the good old ruby-mswin32 builds.

Cross-compiling ruby

The first thing I need to generate an appropriate Makefile in order to cross-compile rcovrt is a suitable rbconfig.rb. It turns out that the easiest way to create it is cross-compiling ruby itself (it takes under 2 minutes on my fairly old box), obtaining the desired file in the process.

I wrote a simple cross-compile.sh:


Read more...

Read: Cross-compiling Ruby extensions for win32: rcovrt

Topic: How Rails Change The Backend Coding Effort Previous Topic   Next Topic Topic: RubyCorner :: Nuevos “features”

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use