[GHC] #8694: ghc -M doesn't handle addDependentFile or #included files
GHC
ghc-devs at haskell.org
Fri Jan 24 20:22:02 UTC 2014
#8694: ghc -M doesn't handle addDependentFile or #included files
------------------------------------+-------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.10.1
Component: Compiler | Version: 7.6.3
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+-------------------------------------
ghc -M doesn't emit dependencies specified by TH's `addDependentFile`, not
does it emit dependencies for `#include`d files.
The former is quite hard to do, because it requires compiling the code: we
only have the information about `addDependentFile` calls after
compilation. So in order to fix this, `ghc -c` would have to drop some
information somewhere for the build system to pick up.
In theory we should only have to preprocess files to get the list of
#included files, and ghc -M already preprocesses all the files. However,
currently #included files are picked up by the lexer during parsing, so
fixing this isn't trivial.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8694>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list