From ac5c09cfa817a0916d6f5226236760c52bfa03a4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 6 Dec 2013 18:06:39 -0400 Subject: try to fix collect2 output parser --- Build/EvilLinker.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Build/EvilLinker.hs b/Build/EvilLinker.hs index ed58c9507..b6377064d 100644 --- a/Build/EvilLinker.hs +++ b/Build/EvilLinker.hs @@ -81,8 +81,9 @@ parseGccLink = do {- Find where collect2 calls ld. -} parseCollect2 :: Parser CmdParams parseCollect2 = do - string "GNU ld" - restOfLine + try $ do + string "GNU ld" + restOfLine string "collect2 version" restOfLine path <- manyTill anyChar (try $ string ldcmd) -- cgit v1.2.3