projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a3042f
)
Don't generate stub files when -fno-code is given.
author
Lemmih
<lemmih@gmail.com>
Sat, 18 Mar 2006 17:18:48 +0000
(17:18 +0000)
committer
Lemmih
<lemmih@gmail.com>
Sat, 18 Mar 2006 17:18:48 +0000
(17:18 +0000)
ghc/compiler/main/CodeOutput.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/main/CodeOutput.lhs
b/ghc/compiler/main/CodeOutput.lhs
index
0148ca4
..
8e4abbc
100644
(file)
--- a/
ghc/compiler/main/CodeOutput.lhs
+++ b/
ghc/compiler/main/CodeOutput.lhs
@@
-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]