Windows make install
simonmar at microsoft.com
Fri May 21 10:54:56 EDT 2004
On 21 May 2004 08:17, Mike Thomas wrote:
> Happy - hard wired to "/usr/local/lib/happy" irrespective of platform.
> Alex - the current working directory.
> Haddock - won't proceed without a --lib/-l command line option.
> I modified alex to search the executable directory (rather than the
> current working directory) using code copied from ghc's
> "SysTools.lhs" and that was OK.
> I didn't check tha change in, as I couldn't get the C preprocessor to
> switch windows code on/off (even with -cpp and -fglaswow-exts) and
> also because I would not have been able to test the Unix variation.
That's strange. The #ifdefs were ignored?
> Further, rather than replicating the code in the utilities as well as
> GHC itself, maybe a "getExecutablePath()" function should be put into
> one of the GHC or system libraries. What say you?
Yes, but perhaps it should be part of the win32 library. There isn't a
way to do this on Unix, but even so we don't use the same directory
layout on Unix installations.
Just copy the code for now (and change the GHC-specific comments).
Later on we'll put something in the library.
More information about the Cvs-ghc