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: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] platform auto-detection mechanism
Date: Fri, 1 Feb 2013 14:20:56 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

Michele La Monaca scripsit:

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

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.

-- 
Knowledge studies others / Wisdom is self-known;      John Cowan
Muscle masters brothers / Self-mastery is bone;       address@hidden
Content need never borrow / Ambition wanders blind;   http://ccil.org/~cowan
Vitality cleaves to the marrow / Leaving death behind.    --Tao 33 (Bynner)



reply via email to

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