Skip to content
Snippets Groups Projects
Commit 5db3b4cf authored by Simon Marlow's avatar Simon Marlow Committed by Ian Lynagh
Browse files

Don't record outputFile in the hashed flags

We don't want

    ghc --make M -o <file>

to force recompilation of all modules when <file> changes.  The -o
value is already taken into account by the recompilation machinery
when we check the modification time on the object file or the
executable.
parent 5cccc826
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,9 @@ fingerprintDynFlags DynFlags{..} nameio = ...@@ -41,7 +41,9 @@ fingerprintDynFlags DynFlags{..} nameio =
-- -i, -osuf, -hcsuf, -hisuf, -odir, -hidir, -stubdir, -o, -ohi -- -i, -osuf, -hcsuf, -hisuf, -odir, -hidir, -stubdir, -o, -ohi
paths = (map normalise importPaths, paths = (map normalise importPaths,
[ objectSuf, hcSuf, hiSuf ], [ objectSuf, hcSuf, hiSuf ],
[ objectDir, hiDir, stubDir, outputFile, outputHi ]) [ objectDir, hiDir, stubDir, outputHi ])
-- NB. not outputFile, we don't want "ghc --make M -o <file>"
-- to force recompilation when <file> changes.
-- -fprof-auto etc. -- -fprof-auto etc.
prof = if opt_SccProfilingOn then fromEnum profAuto else 0 prof = if opt_SccProfilingOn then fromEnum profAuto else 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment