mangle \ in paths (sheesh)
This commit is contained in:
parent
598dc56222
commit
6b30b66160
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,7 @@ parseGhcLink = do
|
||||||
gcccmd <- many1 (noneOf "\"")
|
gcccmd <- many1 (noneOf "\"")
|
||||||
string "\" "
|
string "\" "
|
||||||
gccparams <- restOfLine
|
gccparams <- restOfLine
|
||||||
return $ CmdParams gcccmd gccparams
|
return $ CmdParams gcccmd (manglepaths gccparams)
|
||||||
where
|
where
|
||||||
linkheaderline = do
|
linkheaderline = do
|
||||||
string "*** Linker"
|
string "*** Linker"
|
||||||
|
@ -41,6 +41,7 @@ parseGhcLink = do
|
||||||
prelinklines = do
|
prelinklines = do
|
||||||
notFollowedBy linkheaderline
|
notFollowedBy linkheaderline
|
||||||
restOfLine
|
restOfLine
|
||||||
|
manglepaths = replace "\\" "/"
|
||||||
|
|
||||||
{- Find where gcc calls collect1. -}
|
{- Find where gcc calls collect1. -}
|
||||||
parseGccLink :: Parser CmdParams
|
parseGccLink :: Parser CmdParams
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue