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) --- distrib/cross-port | 1 - distrib/hc-build | 1 - 2 files changed, 2 deletions(-) (limited to 'distrib') diff --git a/distrib/cross-port b/distrib/cross-port index 4a1854135a..29dd804e82 100644 --- a/distrib/cross-port +++ b/distrib/cross-port @@ -62,7 +62,6 @@ if [ ! -f b2-stamp ]; then # code too. If you don't want it to, then comment out this line: echo "GhcUnregisterised = YES" >> mk/build.mk echo "SRC_HC_OPTS += -keep-hc-file -fvia-C" >> mk/build.mk - echo "GhcWithNativeCodeGen = NO" >> mk/build.mk echo "GhcWithInterpreter = NO" >> mk/build.mk # we just need to build the compiler and utils... diff --git a/distrib/hc-build b/distrib/hc-build index 13afaa7adb..ad39854d9e 100644 --- a/distrib/hc-build +++ b/distrib/hc-build @@ -31,7 +31,6 @@ case "$configopts" in cat >>mk/build.mk <