Commit 13dffdda authored by Ian Lynagh's avatar Ian Lynagh
Browse files

We can now unconditionally use -fno-warn-orphans

...which is good, as the conditional test was broken anyway!
parent 43f56cdf
...@@ -160,12 +160,7 @@ odir=stage$(stage) ...@@ -160,12 +160,7 @@ odir=stage$(stage)
SRC_HC_OPTS += $(patsubst %, -i$(odir)/%, $(ALL_DIRS)) SRC_HC_OPTS += $(patsubst %, -i$(odir)/%, $(ALL_DIRS))
SRC_HC_OPTS += -Wall -fno-warn-name-shadowing SRC_HC_OPTS += -Wall -fno-warn-name-shadowing -fno-warn-orphans
# 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
HS_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(HS_SRCS)))) HS_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(HS_SRCS))))
C_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(C_SRCS)))) C_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(C_SRCS))))
......
Markdown is supported
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