X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FMakefile;h=ce69bae2f24087d5f7b80219447288c721af8490;hb=abd113f06ebf3ac29f852e80c5a8c0060f979202;hp=30ec2860139cf9692ea934c0d4a58475b008e71f;hpb=d992bfc87b1a5f2e088df50aa8380ea29f2bc63c;p=ghc-hetmet.git diff --git a/compiler/Makefile b/compiler/Makefile index 30ec286..ce69bae 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -568,9 +568,13 @@ SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) # ----------------------------------------------------------------------------- # Haskell compilations -SRC_HC_OPTS += \ - -cpp -fglasgow-exts -fno-generics -Rghc-timing \ - -I. -Iparser -Iutil +SRC_HC_OPTS += -cpp -fglasgow-exts -Rghc-timing -I. -Iparser -Iutil + +ifeq "$(ghc_ge_609)" "NO" +SRC_HC_OPTS += -fno-generics +else +SRC_HC_OPTS += -XNoGenerics +endif # Omitted: -I$(GHC_INCLUDE_DIR) # We should have -I$(GHC_INCLUDE_DIR) in SRC_HC_OPTS, @@ -594,13 +598,9 @@ SRC_HC_OPTS += -package Win32 PKG_DEPENDS += Win32 endif else -ifeq "$(bootstrapped) $(ghc_ge_601)" "NO NO" -SRC_HC_OPTS += -package posix -else SRC_HC_OPTS += -package unix PKG_DEPENDS += unix endif -endif # We use the Cabal package in stages 2/3 only; in stage 1 we're using # the libcompat library which provides the Cabal modules. @@ -644,8 +644,6 @@ ifeq "$(HOSTPLATFORM)" "hppa1.1-hp-hpux9" rename/RnMonad_HC_OPTS = -O2 -O2-for-C endif -utils/Digraph_HC_OPTS = -fglasgow-exts - # basicTypes/SrcLoc_HC_OPTS = -funbox-strict-fields # We always optimise some low-level modules, otherwise performance of @@ -687,6 +685,10 @@ parser/Lexer_HC_OPTS += -funbox-strict-fields # prototype via a global option instead of a myriad of per-file OPTIONS SRC_HC_OPTS += '-\#include "cutils.h"' +ifeq "$(ghc_ge_605)" "NO" +utils/LazyUniqFM_HC_OPTS += -fallow-undecidable-instances +endif + # ---------------------------------------------------------------------------- # Generate supporting stuff for prelude/PrimOp.lhs # from prelude/primops.txt