From: simonmar Date: Wed, 30 Mar 2005 10:28:08 +0000 (+0000) Subject: [project @ 2005-03-30 10:28:08 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~852 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=029a4f071f28758e611d42cb465c49d561dff11e;hp=9c617747b7575c17783d065ade1e4559a5f9b895;p=ghc-hetmet.git [project @ 2005-03-30 10:28:08 by simonmar] Refine the default setting for GhcWithInterpreter, now exludes x86_64 for the time being. --- diff --git a/mk/config.mk.in b/mk/config.mk.in index 1cdc1b9..6db316e 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -255,7 +255,7 @@ GhcUnregisterised=NO # Target platforms supported: # i386, powerpc # sparc has bitrotted -ifneq "$(findstring $(HostArch_CPP), i386 powerpc)" "" +ifneq "$(findstring $(HostArch_CPP), i386 x86_64 powerpc)" "" GhcWithNativeCodeGen=YES else GhcWithNativeCodeGen=NO @@ -268,9 +268,13 @@ HaveLibDL = @HaveLibDL@ HaveRtldNext = @HaveRtldNext@ HaveRtldLocal = @HaveRtldLocal@ -# Include GHCi in the compiler. Default to NO for the time being. +# Whether to include GHCi in the compiler. Depends on whether the RTS linker +# has support for this OS/ARCH combination. -ifneq "$(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd netbsd openbsd darwin)" "" +OsSupportsGHCi=$(strip $(patsubst $(HostOS_CPP), YES, $(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd netbsd openbsd darwin))) +ArchSupportsGHCi=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 powerpc powerpc64 sparc sparc64))) + +ifeq "$(OsSupportsGHCi)$(ArchSupportsGHCi)" "YESYES" GhcWithInterpreter=YES else GhcWithInterpreter=NO