[project @ 2005-05-24 14:19:09 by simonmar]
authorsimonmar <unknown>
Tue, 24 May 2005 14:19:09 +0000 (14:19 +0000)
committersimonmar <unknown>
Tue, 24 May 2005 14:19:09 +0000 (14:19 +0000)
If hsc_lang is HscNothing, produce an empty linkable.

ghc/compiler/main/DriverPipeline.hs

index 125533b..ec70b8d 100644 (file)
@@ -212,6 +212,9 @@ compile hsc_env msg_act mod_summary maybe_old_linkable old_iface mod_index nmods
 #endif
                       Nothing -> panic "compile: no interpreted code"
 
+               HscNothing
+                 -> return ([], ms_hs_date mod_summary)
+
                -- We're in --make mode: finish the compilation pipeline.
                _other
                  -> do runPipeline StopLn dflags (output_fn,Nothing) Persistent