Commit e796c0f1 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Use the last compiler if more than one is specified

parent ec05d3bb
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment