From: "Ara.T.Howard" Date: 2004-08-05T22:51:36+09:00 Subject: Re: help from *nix ruby users On Thu, 5 Aug 2004 nobu.nokada@softhome.net wrote: > Hi, > > At Thu, 5 Aug 2004 13:25:54 +0900, > Nicholas Van Weerdenburg wrote in [ruby-talk:108359]: >> Is there any difference between >> >> ruby -r rbconfig -e 'p Config::CONFIG["arch"]' >> >> and >> >> ruby -e 'p PLATFORM' > > Almostly equal. But they can be different while cross > compiling. > > Although many extension libraries (even ext/extmk.rb and > lib/mkmf.rb) uses RUBY_PLATFORM in their extconf.rb to determin > the target platform, I consider it shouldn't. > > Moreover, PLATFORM, VERSION and RELEASE_DATE have been > deprecated long ago, so never use them. > > -- > Nobu Nakada so you reccomend using CONFIG['arch']? how about for #ifdefs in extenstions? -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | A flower falls, even though we love it; | and a weed grows, even though we do not love it. | --Dogen ===============================================================================