From c4aefec7092fcd183f63d3990147c03bfa6c180f Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 23 Nov 2005 12:23:10 +0000 Subject: [PATCH] [project @ 2005-11-23 12:23:10 by simonmar] fix up the GhcWithNativeCodeGen logic --- mk/config.mk.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mk/config.mk.in b/mk/config.mk.in index 5a66706..ddd5a20 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -255,7 +255,11 @@ GhcUnregisterised=NO # Target platforms supported: # i386, powerpc # sparc has bitrotted -ifneq "$(findstring $(HostArch_CPP), i386 x86_64 powerpc)" "" +# AIX is not supported +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" GhcWithNativeCodeGen=YES else GhcWithNativeCodeGen=NO -- 1.7.10.4