X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FMakefile;h=721f190351561d0650e4101a4714ddb25a24c8a6;hb=46695f8ccbc6c98ff0dbcd499a0ab2a84c99ec77;hp=dea140beb95b9580de604189d8ca44b92a78474f;hpb=6b2866211bc9506be9bf271afe4f2f34f1b2f9e0;p=ghc-hetmet.git diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index dea140b..721f190 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -5,7 +5,7 @@ include $(TOP)/mk/boilerplate.mk #----------------------------------------------------------------------------- # Building hsc different ways (default is just `normal' sequential) -override WAYS=$(GhcCompilerWays) +WAYS=$(GhcCompilerWays) #----------------------------------------------------------------------------- # Set SUBDIRS @@ -187,9 +187,9 @@ rename/ParseIface_HC_OPTS += -Onot -H16m rename/ParseType_HC_OPTS += -Onot -H16m rename/ParseUnfolding_HC_OPTS += -Onot -H30m ifeq "$(Ghc2_0)" "YES" -rename/ParseIface_HC_OPTS += -fno-warn-incomplete-patterns -fno-warn-overlapped-patterns -rename/ParseType_HC_OPTS += -fno-warn-incomplete-patterns -fno-warn-overlapped-patterns -rename/ParseUnfolding_HC_OPTS += -fno-warn-incomplete-patterns -fno-warn-overlapped-patterns +rename/ParseIface_HC_OPTS += -fno-warn-incomplete-patterns +rename/ParseType_HC_OPTS += -fno-warn-incomplete-patterns +rename/ParseUnfolding_HC_OPTS += -fno-warn-incomplete-patterns endif ifeq "$(TARGETPLATFORM)" "hppa1.1-hp-hpux9" @@ -221,6 +221,11 @@ utils/FastString_HC_OPTS = -fvia-C -monly-3-regs utils/StringBuffer_HC_OPTS = -fvia-C utils/Digraph_HC_OPTS = -fglasgow-exts -fvia-C +# optimiser misbehaving in 0.29, occurrence analyser fails to terminate when +# compiling lib/required/Time.lhs +ifeq "$(Ghc2_0)" "NO" +simplCore/OccurAnal_HC_OPTS = -Onot +endif # ---------------------------------------------------------------------------- # C compilations @@ -361,10 +366,11 @@ MAINTAINER_CLEAN_FILES += $(wildcard */*.hc) #----------------------------------------------------------------------------- -# TAGS +# TAGS setup SRC_HSTAGS_OPTS += -fglasgow-exts -cpp - +TAGS_HS_SRCS=$(foreach dir,$(DIRS),$(wildcard $(dir)/*.lhs)) +TAGS_C_SRCS=$(strip $(foreach f,$(foreach dir,$(DIRS),$(wildcard $(dir)/*.c)),$(shell if [ -w $(f) ]; then echo $(f); else echo ''; fi))) #----------------------------------------------------------------------------- # Include target-rule boilerplate