= do stub_o <- compileStub dflags' this_mod location
return [ DotO stub_o ]
- handleMake (HscNoRecomp, iface, details)
+ handleBatch (HscNoRecomp, iface, details)
= ASSERT (isJust maybe_old_linkable)
return (CompOK details iface maybe_old_linkable)
- handleMake (HscRecomp hasStub, iface, details)
+ handleBatch (HscRecomp hasStub, iface, details)
| isHsBoot src_flavour
= return (CompOK details iface Nothing)
| otherwise
HscInterpreted | not (isHsBoot src_flavour) -- We can't compile boot files to
-- bytecode so don't even try.
-> runCompiler hscCompileInteractive handleInterpreted
+ HscNothing
+ -> runCompiler hscCompileNothing handleBatch
_other
- -> runCompiler hscCompileMake handleMake
+ -> runCompiler hscCompileBatch handleBatch
-----------------------------------------------------------------------------
-- stub .h and .c files (for foreign export support)