X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FMakefile;h=67962bc0fedf26118eb9be0a58c36b0297b78443;hb=92e1151179b419ce5d7a144993053ae982e0df5e;hp=6f3c94c99a40d97c8598efbaa3a98406c4ccd48a;hpb=17b297d97d327620ed6bfab942f8992b2446f1bf;p=ghc-hetmet.git diff --git a/compiler/Makefile b/compiler/Makefile index 6f3c94c..67962bc 100644 --- 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))))