Fix the behavior of ae87e122 (#8180)
authorAustin Seipp <austin@well-typed.com>
Mon, 13 Jan 2014 08:52:35 +0000 (02:52 -0600)
committerAustin Seipp <austin@well-typed.com>
Tue, 14 Jan 2014 09:46:06 +0000 (03:46 -0600)
commit7df27d52cffa915886b9f2860e961a0e7bb5dd1e
treebe30072f1fdef66f916e94387044ac57d009054f
parent4d5d68a87c282dc4bdac146685b2705de8fdbe3a
Fix the behavior of ae87e122 (#8180)

As Simon pointed out, we should only enable -dynamic-too in the template
haskell case if GHC is dynamic and we're not already compiling in the
dyn way (the dyn way will be switched on by -dynamic-too later in the
pipeline anyway - see pipeLoop)

Signed-off-by: Austin Seipp <austin@well-typed.com>
compiler/main/DriverPipeline.hs
compiler/main/DynFlags.hs