darcs patch: Be cleverer about guessing hc-pkg name a... (and 1 more)
I got annoied with specifying: ./setup configure --with-compiler=ghc-6.5.20060724 --with-hc-pkg=ghc-pkg-6.5.20060724 So the first patch makes it guess better about so that this works: ./setup configure --with-compiler=ghc-6.5.20060724 The second patch is just a trivial simplification. That bit should probably use pipes rather than outputting to a file and then reading the file. I didn't want to just push these changes, so can someone else give them a quick look over and commit. Cheers. Duncan Wed Aug 23 11:54:12 BST 2006 Duncan Coutts <duncan.coutts@worc.ox.ac.uk> * Be cleverer about guessing hc-pkg name and location. So it now works if you say: ./setup configure --with-compiler=ghc-6.5 ie specifying a path-relative name rather than an absolute path. We then look for hc-pkg in the same dir as where we found the compiler. If the compiler appears to have a version suffix then we additionally and preferentially look for hc-pkg with that same version suffix. (I'm not sure that bit works if you've got a .exe suffix, perhaps a windows person could try it / take a look) Wed Aug 23 11:59:56 BST 2006 Duncan Coutts <duncan.coutts@worc.ox.ac.uk> * Use slightly simpler way of getting GHC version. ghc has supported --numeric-version for ages.
participants (1)
-
Duncan Coutts