X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=23162f936312b3465d14010d6b1b808cbe27184d;hb=d957ac9587590c11a8879d7540731c0ffe7d8b5e;hp=ed48d423622357f134caeddb3043e7a55c26297d;hpb=176c2483f443d499788663936cb3292cb1602cf5;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index ed48d42..23162f9 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -33,7 +33,9 @@ # included by boilerplate.mk (see boilerplate.mk for a list). ifneq "$(findstring 3.7, $(MAKE_VERSION))" "" -$(error GNU make version 3.80 or later is required.) +ifeq "$(findstring 3.79.1, $(MAKE_VERSION))" "" +$(error GNU make version 3.79.1 or later is required.) +endif endif ################################################################################ @@ -250,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) @@ -262,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 @@ -277,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 @@ -1046,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 @@ -1082,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