We can now unconditionally use -fno-warn-orphans
authorIan Lynagh <igloo@earth.li>
Thu, 10 Jul 2008 12:59:48 +0000 (12:59 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 10 Jul 2008 12:59:48 +0000 (12:59 +0000)
...which is good, as the conditional test was broken anyway!

compiler/Makefile

index 230dae5..8e3c88b 100644 (file)
@@ -160,12 +160,7 @@ odir=stage$(stage)
 
 SRC_HC_OPTS += $(patsubst %, -i$(odir)/%, $(ALL_DIRS))
 
-SRC_HC_OPTS += -Wall -fno-warn-name-shadowing
-# Turn off orphan warnings, but only if the flag exists (i.e. not if we
-# are building stage 1 and using GHC < 6.3).
-ifneq "$(stage)" "1 NO"
-SRC_HC_OPTS += -fno-warn-orphans
-endif
+SRC_HC_OPTS += -Wall -fno-warn-name-shadowing -fno-warn-orphans
 
 HS_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(HS_SRCS))))
 C_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(C_SRCS))))