From 735f9d6bac316a0c1c68a8b49bba465f07b01cdd Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Mon, 29 Jun 2020 19:58:56 +0200 Subject: Replace ghcWithNativeCodeGen with a proper Backend datatype * Represent backends with a `Backend` datatype in GHC.Driver.Backend * Don't detect the default backend to use for the target platform at compile time in Hadrian/make but at runtime. It makes "Settings" simpler and it is a step toward making GHC multi-target. * The latter change also fixes hadrian which has not been updated to take into account that the NCG now supports AIX and PPC64 (cf df26b95559fd467abc0a3a4151127c95cb5011b9 and d3c1dda60d0ec07fc7f593bfd83ec9457dfa7984) * Also we don't treat iOS specifically anymore (cf cb4878ffd18a3c70f98bdbb413cd3c4d1f054e1f) --- mk/config.mk.in | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'mk/config.mk.in') diff --git a/mk/config.mk.in b/mk/config.mk.in index 9c4cdc9573..4269dec785 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -173,19 +173,6 @@ endif # GhcUnregisterised=@Unregisterised@ -# Build a compiler with a native code generator backend -# (as well as a C backend) -# -# Target platforms supported: -# i386, powerpc, powerpc64, sparc -# IOS is not supported -ArchSupportsNCG=$(strip $(patsubst $(TargetArch_CPP), YES, $(findstring $(TargetArch_CPP), i386 x86_64 powerpc powerpc64 powerpc64le sparc))) -OsSupportsNCG=$(strip $(patsubst $(TargetOS_CPP), YES, $(patsubst ios,,$(TargetOS_CPP)))) - -GhcWithNativeCodeGen := $(strip\ - $(if $(filter YESYESNO,\ - $(OsSupportsNCG)$(ArchSupportsNCG)$(GhcUnregisterised)),YES,NO)) - # ArchSupportsSMP should be set iff there is support for that arch in # includes/stg/SMP.h ifeq "$(TargetArch_CPP)" "arm" -- cgit v1.2.1