Re: hmake: Getting compiler info at runtime and not relying on name for compiler type
Malcolm Wallace <[email protected]> Fri, 26 Sep 2003 15:34:47 +0100
| Newsgroups | gmane.comp.lang.haskell.nhc.user |
|---|---|
| Organization | Dept of Computer Science, University of York |
| Message-ID | <[email protected]> |
Ian Lynagh <[email protected]> writes: > Attached is a patch which does two things: > > * Gets compiler type from the result of running a compiler if the first > 3 letters aren't ghc|nhc|hbc|gcc. I wanted this for > /usr/bin/haskell-compiler. > * If "hmake-config add-dyn" is used instead of "hmake add" then the > compiler information is not stored, but worked out dynamically when > used. This means /usr/bin/haskell-compiler can be the default hmake > compiler on a Debian installation and it doesn't matter if it is > really nhc98, ghc6 or ghc5, and there is no need to require specific > versions of the compilers. Thanks for the contribution. I am reviewing your code and will incorporate it into hmake with perhaps a couple of tidy-ups. Regards, Malcolm