chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism


From: Michele La Monaca
Subject: Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism
Date: Fri, 1 Feb 2013 21:34:30 +0100

Hi John,

On Fri, Feb 1, 2013 at 8:20 PM, John Cowan <address@hidden> wrote:

> Michele La Monaca scripsit:
>
>> You have a point here. Let me propose a compromise: detecting Windows
>> is easy and bullet-proof.

in this context "detecting Windows" means running a Windows OS
irrespective of which environment you are in (cmd, cygwin shell, msys,
whatever). That's the easy part. No need of gcc.

> Just make sure that your Windows detection does not misdetect Cygwin,
> which is not Windows at all for Chicken purposes.  Since you can't count
> on uname in a pure MinGW world, the best thing is probably to invoke "gcc
> -dumpmachine" and test the output with "findstring"; that will give you
> a result that is as reliable as gcc.  Cygwin isn't a cross-compilation
> host normally, so no issues there.

Currently MinGW detection is done by exclusion. If you are Windows and
not running in a MSYS or CYGWIN environment then I conclude that you
are MinGW. I think this line of reasoning is correct, but if there are
experts please chime in.

Regards,
mikele



reply via email to

[Prev in Thread] Current Thread [Next in Thread]