Disable the NCG if GhcUnregisterised=YES
authorSimon Marlow <simonmar@microsoft.com>
Wed, 1 Mar 2006 16:53:41 +0000 (16:53 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 1 Mar 2006 16:53:41 +0000 (16:53 +0000)
The NCG cannot be used in an unregisterised compiler, so there's no
point in including it.

mk/config.mk.in

index 67b69d8..8a495b0 100644 (file)
@@ -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