Commit 7f24ae51 authored by David Himmelstrup's avatar David Himmelstrup
Browse files

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

parent 206710ba
......@@ -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]
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