From: Simon Marlow Date: Thu, 14 Apr 2011 09:40:17 +0000 (+0100) Subject: Add a final newline to the link-time C file that we generate, X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9eebc6dec9a2271a51795bcfbcf1d3be849435a6;p=ghc-hetmet.git Add a final newline to the link-time C file that we generate, otherwise some versions of gcc complain about a missing final newline. --- diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index 61486fc..488012d 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1433,7 +1433,10 @@ mkExtraObjToLinkIntoBinary dflags dep_packages = do link_info <- getLinkInfo dflags dep_packages mkExtraCObj dflags (showSDoc (vcat [rts_opts_enabled, extra_rts_opts, - link_opts link_info])) + link_opts link_info] + <> char '\n')) -- final newline, to + -- keep gcc happy + where mk_rts_opts_enabled val = vcat [text "#include \"Rts.h\"",