This is the mail archive of the
mailing list for the Cygwin project.
Re: building a cygwin aware GHC
On 20 October 2011 17:53, Nathan Thern wrote:
> On Thu, Oct 20, 2011 at 11:04 AM, Marco Atzeri wrote:
>> no experience on GHC and looking at the source, I am sure you need
>> to cut through the source tree.
>> Look also the aclocal.m4 ont only configure.ac
>> I noticed also wrong/obsolete assumption around the code
>> libraries/base/GHC/ConsoleHandler.hs:-- Â* Cygwin shells with @CYGWIN=tty@
> Things like that are strewn throughout the code. My approach this time
> is going to be any if or case or #ifdef that checks cygwin or mingw or
> msys or win32 etc. gets expunged.
None of the mingw, msys, or win32 macros get defined by Cygwin gcc.
(WIN32 and _WIN32 get defined by the Windows headers though, if any
happen to be included without a platform check.)
If you excise the _CYGWIN checks only, you might have a chance of
getting it accepted upstream, which would be rather nice.
You do need to make sure that the configury picks up the Cygwin
toolchain rather than any of the MinGW cross toolchains (including
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple