From: Lemmih Date: Sat, 18 Mar 2006 17:18:48 +0000 (+0000) Subject: Don't generate stub files when -fno-code is given. X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=7f24ae51ed36c5c0308a2d0de23e243f32a0043c;hp=206710baa90ffb7ff3541f76ec2d5daf5e3a47e5 Don't generate stub files when -fno-code is given. --- diff --git a/ghc/compiler/main/CodeOutput.lhs b/ghc/compiler/main/CodeOutput.lhs index 8e4abbc..0148ca4 100644 --- a/ghc/compiler/main/CodeOutput.lhs +++ b/ghc/compiler/main/CodeOutput.lhs @@ -61,11 +61,7 @@ codeOutput :: DynFlags -> IO (Bool{-stub_h_exists-}, Bool{-stub_c_exists-}) codeOutput dflags this_mod location foreign_stubs pkg_deps flat_abstractC - | HscNothing <- hscTarget dflags - -- We aren't interested in any code when HscNothing is our target. - = return (False, False) - | otherwise - = + = -- You can have C (c_output) or assembly-language (ncg_output), -- but not both. [Allowing for both gives a space leak on -- flat_abstractC. WDP 94/10]