On Tue, Aug 19, 2008 at 8:59 AM, Adam Salter <[EMAIL PROTECTED]> wrote:
> On 16/08/2008, at 2:19 AM, Luis Lavena wrote:
>
>> On Fri, Aug 15, 2008 at 5:54 PM, Berger, Daniel <[EMAIL PROTECTED]>
>> wrote:
>>>>
>>>> -----Original Message-----
>>>> From: [EMAIL PROTECTED]
>>>> [mailto:[EMAIL PROTECTED] On Behalf Of Adam Salter
>>>> Sent: Friday, August 15, 2008 12:39 AM
>>>> To: Rake Development and Discussion
>>>> Subject: Re: [Rake-devel] ~/.rake file?
>>>>
>>>> Dear all,
>>>> I have created a issue for this, with associated comments and patch:
>>>> http://onestepback.org/redmine/issues/show/13
>>>>
>>>> It basically just needs:
>>>> a) Windows testing.
>>>
>>> <snip>
>>>
>>
>> <further snip>
>>>
>>> Don't do this:
>>>
>>> PLATFORM =~ /win32/
>>>
>>> First, PLATFORM is deprecated instead of RUBY_PLATFORM. But, with the
>>> advent of alternative implementations like Jruby and IronRuby,
>>> RUBY_PLATFORM is no longer a wise approach. Jruby, for example, will
>>> return 'java' for the RUBY_PLATFORM, even if you're on Windows.
>>>
>>> Use rbconfig + host_os instead:
>>>
>>> require 'rbconfig'
>>>
>>> if Config::CONFIG['host_os'] =~ /mswin/I
>>> ...
>>>
>>
>> Don't compare just to mswin either.
>>
>> That bangs out not only MinGW (mingw) but also bccwin, which even has
>> no release in long time, there are some users interested in keeping it
>> running.
>>
>
> Why should I care about MinGW? Aren't we just trying to get Windows (ie
> non-Unix)?
>

MinGW:

Minimalist GNU for Windows:

GNU toolchain (GCC, make, binutils) that generate native binaries that
works on Windows. This suite is runtime compatible with Visual C tools
that link to MSVCRT.

So: you should care about it:

http://blog.mmediasys.com/2008/03/29/progress-of-one-click-installer-rubyinstaller/
http://www.akitaonrails.com/2008/7/21/testing-the-new-one-click-ruby-installer-for-windows
http://www.akitaonrails.com/2008/7/26/still-playing-with-ruby-on-windows

Both mswin and mingw runs on Windows:
(ruby -v)

ruby 1.8.6 (2008-03-03 patchlevel 114) [i386-mswin32]
ruby 1.8.6 (2008-03-03 patchlevel 114) [i386-mingw32]

Both are the same from the binary perspective, but for Ruby, they are
not (make instead of nmake, gcc.exe instead of cl.exe, etc.)

So that's why RUBY_PLATFORM have different "signature" across them.

-- 
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel

Reply via email to