FIX -stubdir bug: the .hc file was #including the wrong _stub.h filename
authorSimon Marlow <simonmar@microsoft.com>
Wed, 26 Sep 2007 13:45:39 +0000 (13:45 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 26 Sep 2007 13:45:39 +0000 (13:45 +0000)
commit8af9e46751058eecc15d0251c5e250ebcb8367da
treed4cb89ee54cb92fba9729941b5a29dfa40ef102d
parent2bfebb2de8dcd00385eb07e42b5f4853a542298d
FIX -stubdir bug: the .hc file was #including the wrong _stub.h filename
Using -stubdir together with hierarchical modules, -fvia-C, and --make
is essentially broken in 6.6.x.  Recently discovered by Cabal's use of
-stubdir.

Test cases: driver027/driver028 (I've updated them to use -fvia-C, in
order to test for this bug).
compiler/main/CodeOutput.lhs
compiler/main/DriverPipeline.hs
compiler/main/DynFlags.hs
compiler/main/Finder.lhs