Commit 5c67b7e3 authored by David Himmelstrup's avatar David Himmelstrup
Browse files

Don't generate stub files when -fno-code is given.

parent 4a3042fc
......@@ -61,7 +61,11 @@ 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]
......
Markdown is supported
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