X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=mk%2Fconfig.mk.in;h=ddd5a20100d77fd82fd9dece4fc914e266812d3d;hb=bba98641e10c71ec9aeb20d508b8905e4a64a143;hp=5a66706e74cd856e8b43d1fb7836a028b07cdad0;hpb=61fc6ff4b527d8dd9294ea1a65f5ef7e71d5dbf6;p=ghc-hetmet.git 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