From 4ce722f77d28167b81d519fcce9c4904e13ce983 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 1 Mar 2006 16:53:41 +0000 Subject: [PATCH] Disable the NCG if GhcUnregisterised=YES The NCG cannot be used in an unregisterised compiler, so there's no point in including it. --- mk/config.mk.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4