fixing a bug of removeMainTarget.
If CPP is specified, a temprary file name was used.
This commit is contained in:
parent
159b7b1eb6
commit
ac45c24e3a
@ -136,7 +136,10 @@ checkStx set ls readLog file = do
|
|||||||
case mx of
|
case mx of
|
||||||
Nothing -> return Nothing
|
Nothing -> return Nothing
|
||||||
Just x -> do
|
Just x -> do
|
||||||
let mainfile = G.ms_hspp_file x
|
let mmainfile = G.ml_hs_file (G.ms_location x)
|
||||||
|
-- G.ms_hspp_file x is a temporary file with CPP.
|
||||||
|
-- this is a just fake.
|
||||||
|
mainfile = fromMaybe (G.ms_hspp_file x) mmainfile
|
||||||
if mainfile == file then
|
if mainfile == file then
|
||||||
return Nothing
|
return Nothing
|
||||||
else do
|
else do
|
||||||
|
Loading…
Reference in New Issue
Block a user