Commit 9eebc6de authored by Simon Marlow's avatar Simon Marlow
Browse files

Add a final newline to the link-time C file that we generate,

otherwise some versions of gcc complain about a missing final newline.
parent cc2ea98a
......@@ -1433,7 +1433,10 @@ mkExtraObjToLinkIntoBinary dflags dep_packages = do
link_info <- getLinkInfo dflags dep_packages
mkExtraCObj dflags (showSDoc (vcat [rts_opts_enabled,
link_opts link_info]))
link_opts link_info]
<> char '\n')) -- final newline, to
-- keep gcc happy
mk_rts_opts_enabled val
= vcat [text "#include \"Rts.h\"",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment