From 029a4f071f28758e611d42cb465c49d561dff11e Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 30 Mar 2005 10:28:08 +0000 Subject: [PATCH] [project @ 2005-03-30 10:28:08 by simonmar] Refine the default setting for GhcWithInterpreter, now exludes x86_64 for the time being. --- mk/config.mk.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 -- 1.7.10.4