From: Simon Marlow Date: Wed, 1 Mar 2006 16:53:41 +0000 (+0000) Subject: Disable the NCG if GhcUnregisterised=YES X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4ce722f77d28167b81d519fcce9c4904e13ce983;p=ghc-hetmet.git Disable the NCG if GhcUnregisterised=YES The NCG cannot be used in an unregisterised compiler, so there's no point in including it. --- diff --git a/mk/config.mk.in b/mk/config.mk.in index 67b69d8..8a495b0 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -264,7 +264,7 @@ GhcUnregisterised=NO ArchSupportsNCG=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 x86_64 powerpc))) OsSupportsNCG=$(strip $(patsubst $(HostOS_CPP), YES, $(patsubst aix,,$(HostOS_CPP)))) -ifeq "$(OsSupportsNCG)$(ArchSupportsNCG)" "YESYES" +ifeq "$(OsSupportsNCG)$(ArchSupportsNCG)$(GhcUnregisterised)" "YESYESNO" GhcWithNativeCodeGen=YES else GhcWithNativeCodeGen=NO