X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FMakefile;h=d90ca66567056fabc1b5a9503328f1705ce60498;hb=3322851b688bb589aad8b15a95eb82c8aaaf0cb5;hp=ea02562e87ccfad3aebcfab808bd0f517fce3293;hpb=0d792bea36420e657fb293d9f90f35d8ef96cb4f;p=ghc-hetmet.git diff --git a/compiler/Makefile b/compiler/Makefile index ea02562..d90ca66 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -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)))) @@ -588,11 +583,6 @@ endif # Disaster! Then the hc file sees the GHC 5.02 (or whatever) # include files. For the moment we've reverted to using # an explicit path in the .hs sources -# -# For the benefit of <5.00 compilers, do include GHC_INCLUDE_DIR -# when generating dependencies. (=> it gets passed onto mkdependHS, -# which needs it). -SRC_MKDEPENDHS_OPTS += -I$(GHC_INCLUDE_DIR) # We need System.Posix (or Posix when ghc < 6.2) ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" @@ -669,8 +659,6 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32" main/SysTools_HC_OPTS += '-\#include ' '-\#include ' endif -parser/Lexer_HC_OPTS += -funbox-strict-fields - # ghc_strlen percolates through so many modules that it is easier to get its # prototype via a global option instead of a myriad of per-file OPTIONS SRC_HC_OPTS += '-\#include "cutils.h"'