From db26e3c4de0b301e310467ca094b21c61f576883 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 6 Dec 2013 18:06:39 -0400 Subject: [PATCH] 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 ed58c9507b..b6377064da 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)