[project @ 2001-03-26 12:28:15 by simonmar]
authorsimonmar <unknown>
Mon, 26 Mar 2001 12:28:15 +0000 (12:28 +0000)
committersimonmar <unknown>
Mon, 26 Mar 2001 12:28:15 +0000 (12:28 +0000)
commit7d6569fbc7a7c8f9d45cf31bd6a7f699c86715fb
treea9f3ffed26663fcd1796886bcce39fd128b1ce6b
parent83247823fae36d96593a5f01c1707e27ad655995
[project @ 2001-03-26 12:28:15 by simonmar]
Simplify the foreign-export stub processing.

  - DynFlags now has fields for the stub.h and stub.c filenames, for
    consistency with the normal hsc output file name.

  - codeOutput puts the stubs into these files rather than dreaming
    up new temporary names for them

  - now we don't have to move the stubs into the right place in
    DriverPipeline.

  - we do however have to inject the correct #includes into the stub.c
    file when it is generated: I'm now injecting the same includes as
    the .hc file gets plus "RtsAPI.h", which is probably more correct
    than the hacky hardcoded "Stg.h" we had before.
ghc/compiler/main/CmdLineOpts.lhs
ghc/compiler/main/CodeOutput.lhs
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/HscMain.lhs