#3589: Recompilation checker doesn't take into account CPP headers
---------------------------------+------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.4.1
Component: Compiler | Version: 6.10.4
Keywords: | Testcase:
Difficulty: Unknown | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by marlowsd@…):
commit 3f34e0913efcc82dd90be56d04c5e57ec60d3677
{{{
Author: Simon Marlow <[email protected]>
Date: Fri Nov 18 12:46:01 2011 +0000
Track #included files for recompilation checking (#4900, #3589)
This was pretty straightforward: collect the filenames in the lexer,
and add them in to the tcg_dependent_files list that the typechecker
collects.
Note that we still don't get #included files in the ghc -M output.
Since we don't normally lex the whole file in ghc -M, this same
mechanism can't be used directly.
compiler/main/GHC.hs | 11 ++++++---
compiler/main/HscMain.hs | 41
+++++++++++++++++++++++++++++-------
compiler/main/HscTypes.lhs | 21 +++++++++++++++++++
compiler/parser/Lexer.x | 6 +++++
compiler/typecheck/TcRnDriver.lhs | 16 ++++++++++---
compiler/typecheck/TcRnMonad.lhs | 6 +++++
compiler/typecheck/TcRnTypes.lhs | 2 +-
7 files changed, 86 insertions(+), 17 deletions(-)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3589#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs