X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2FMakefile;h=342a1ab156c7552aeaaf994aeb1fe76fa8251dc4;hb=75879a1e1a0a22d3a7218efd71017af724262704;hp=f9a0b5846c8eaa2e1f01600a1862492230e8d9bd;hpb=e8059392ec230c81f67b2e10e2148ff947f5e2de;p=ghc-hetmet.git diff --git a/compiler/Makefile b/compiler/Makefile index f9a0b58..342a1ab 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -166,6 +166,11 @@ 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) $(ghc_ge_603)" "1 NO" +SRC_HC_OPTS += -fno-warn-orphans +endif HS_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(HS_SRCS)))) C_OBJS = $(patsubst %, $(odir)/%, $(addsuffix .$(way_)o,$(basename $(C_SRCS))))