From e796c0f1a48b71be6917da401f5c1cbaf699a87e Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 5 Jul 2008 12:14:26 +0000 Subject: [PATCH] Use the last compiler if more than one is specified --- utils/hsc2hs/Main.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 1.7.10.4