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:
17b297d
)
Set -Wall -fno-warn-name-shadowing in compiler/ when stage /= 2
author
Ian Lynagh
<igloo@earth.li>
Sat, 1 Sep 2007 11:30:18 +0000
(11:30 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 1 Sep 2007 11:30:18 +0000
(11:30 +0000)
compiler/Makefile
patch
|
blob
|
history
diff --git
a/compiler/Makefile
b/compiler/Makefile
index
6f3c94c
..
67962bc
100644
(file)
--- a/
compiler/Makefile
+++ b/
compiler/Makefile
@@
-165,6
+165,10
@@
odir=stage$(stage)
SRC_HC_OPTS += $(patsubst %, -i$(odir)/%, $(ALL_DIRS))
+ifneq "$(stage)" "1"
+SRC_HC_OPTS += -Wall -fno-warn-name-shadowing
+endif
+
HS_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(HS_SRCS))))
C_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(C_SRCS))))