From: Ian Lynagh Date: Sat, 5 Jul 2008 12:14:26 +0000 (+0000) Subject: Use the last compiler if more than one is specified X-Git-Tag: Before_cabalised-GHC~78 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=e796c0f1a48b71be6917da401f5c1cbaf699a87e;hp=ec05d3bbba14c9c022a9752819f7fd4aa9277e1c;p=ghc-hetmet.git Use the last compiler if more than one is specified --- diff --git a/utils/hsc2hs/Main.hs b/utils/hsc2hs/Main.hs index 978cc4b..e541e21 100644 --- a/utils/hsc2hs/Main.hs +++ b/utils/hsc2hs/Main.hs @@ -575,8 +575,7 @@ output flags name toks = do -- (called hsc2hs-inplace, generated from hsc2hs.sh) compiler <- case [c | Compiler c <- flags] of [] -> locateGhc "ghc" - [c] -> return c - _ -> onlyOne "compiler" + cs -> return (last cs) linker <- case [l | Linker l <- flags] of [] -> locateGhc compiler