summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsimonmar <unknown>2005-11-23 12:23:10 +0000
committersimonmar <unknown>2005-11-23 12:23:10 +0000
commitc4aefec7092fcd183f63d3990147c03bfa6c180f (patch)
treef856c0146eefb56a9a2e01280880f16846dfad66 /mk
parent8a223184539a3d6959690580b38b23b489a67408 (diff)
downloadhaskell-c4aefec7092fcd183f63d3990147c03bfa6c180f.tar.gz
[project @ 2005-11-23 12:23:10 by simonmar]
fix up the GhcWithNativeCodeGen logic
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 5a66706e74..ddd5a20100 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