[project @ 2005-10-28 15:22:39 by simonmar]
authorsimonmar <unknown>
Fri, 28 Oct 2005 15:22:39 +0000 (15:22 +0000)
committersimonmar <unknown>
Fri, 28 Oct 2005 15:22:39 +0000 (15:22 +0000)
commitf2e730f34ab0134391c88fe58f9f9e94b736da91
tree072cbaa3a0adaf7e6a0e2eb31ae6512ba6c3f4cc
parent554959511db7fd80b6da073abcfceb2392902054
[project @ 2005-10-28 15:22:39 by simonmar]
Add -stubdir option to control location of generated stub files.  Also
do some clean up while I'm here - remove hscStubCOut/hscStubHOut from
DynFlags, and add

  mkStubPaths :: DynFlags -> Module -> ModLocation -> (FilePath,FilePath)

to Finder.  (this seemed better than caching the stub paths in every
ModLocation, because they are rarely needed and only present in home
modules, and are easily calculated from other available information).

-stubdir behaves in exactly the same way as -odir and -hidir.
ghc/compiler/main/CodeOutput.lhs
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/DynFlags.hs
ghc/compiler/main/Finder.lhs
ghc/compiler/main/HscMain.lhs
ghc/compiler/main/Main.hs