This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
>
> Yep.
>
>> 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
gcc-3 -mno-cygwin).

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]