#7027: Lots of unnecessary recompilation
------------------------------+---------------------------------------------
Reporter: selinger | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.2 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Comment(by selinger):
There is also a related problem regarding -i options. For example, I have
a general-purpose module in a directory /tmp/foo/, and I compile it there:
cd /tmp/foo/; ghc Module1.hs
I have another module in a directory /tmp/bar/, and it imports Module1, so
I compile it with:
cd /tmp/bar/; ghc -i../foo Module2.hs
At this point, GHC 7.2.2 did the correct thing, namely compiled only
Module2 and linked it against the already-compiled Module1.
GHC 7.4, on the other hand, will recompile both modules. Presumably this
is because the -i option has changed. But this is absurd! One of the
purposes of -i options is precisely to be able to link against modules not
rooted in the current directory. Re-compiling them each time defeats this
purpose. In my opinion, this rises to the level of a bug, not just a badly
thought out feature.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7027#comment:1>
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