X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=23162f936312b3465d14010d6b1b808cbe27184d;hb=d7d596d039b48dec6b71df9c4bca0d12958ecdb9;hp=85625e36de70bd2932d13beb0559f0adafaf7e45;hpb=d19f868a2fbfb583e57d9c47b97c0cdb3a95ae57;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 85625e3..23162f9 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -252,7 +252,11 @@ GhcStage3HcOpts= # the compiler you build with is generating registerised binaries), but # the stage2 compiler will be an unregisterised binary. # +ifneq "$(findstring $(HostArch_CPP), alpha hppa)" "" +GhcUnregisterised=YES +else GhcUnregisterised=NO +endif # Build a compiler with a native code generator backend # (as well as a C backend) @@ -264,7 +268,7 @@ GhcUnregisterised=NO 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" +ifeq "$(OsSupportsNCG)$(ArchSupportsNCG)$(GhcUnregisterised)" "YESYESNO" GhcWithNativeCodeGen=YES else GhcWithNativeCodeGen=NO @@ -279,7 +283,7 @@ HaveLibDL = @HaveLibDL@ # has support for this OS/ARCH combination. 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 x86_64 powerpc powerpc64 sparc sparc64))) +ArchSupportsGHCi=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 x86_64 powerpc sparc sparc64))) ifeq "$(OsSupportsGHCi)$(ArchSupportsGHCi)" "YESYES" GhcWithInterpreter=YES @@ -1048,10 +1052,6 @@ WAY_t_HC_OPTS= -ticky WAY_u_NAME=unregisterized (using portable C only) WAY_u_HC_OPTS=-unreg -# Way `s': -WAY_s_NAME=threads (for SMP) -WAY_s_HC_OPTS=-smp -optc-DTHREADED_RTS - # Way `mp': WAY_mp_NAME=parallel WAY_mp_HC_OPTS=-parallel @@ -1084,10 +1084,6 @@ WAY_debug_p_HC_OPTS=-optc-DDEBUG -prof WAY_debug_u_NAME=debug unregisterised WAY_debug_u_HC_OPTS=-optc-DDEBUG -unreg -# Way 'debug_s': -WAY_debug_s_NAME=debug SMP -WAY_debug_s_HC_OPTS=-optc-DDEBUG -optc-DTHREADED_RTS -smp - # Way 'thr_debug': WAY_thr_debug_NAME=threaded WAY_thr_debug_HC_OPTS=-optc-DTHREADED_RTS -optc-DDEBUG