[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
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Mario Domenech Goulart, 2013/02/01
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Michele La Monaca, 2013/02/01
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Peter Bex, 2013/02/01
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, John Cowan, 2013/02/01
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, .alyn.post., 2013/02/01
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism,
Michele La Monaca <=
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Peter Bex, 2013/02/01
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Michele La Monaca, 2013/02/03
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, John Cowan, 2013/02/03
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Michele La Monaca, 2013/02/07
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Felix, 2013/02/03
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Michele La Monaca, 2013/02/04
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, John Cowan, 2013/02/01
- Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, Peter Bex, 2013/02/01
Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism, .alyn.post., 2013/02/01