From: Ilias Tsitsimpis Date: Mon, 17 Feb 2025 08:44:23 +0000 (+0100) Subject: Enable GHCi on all platforms in Debian X-Git-Tag: archive/raspbian/9.6.6-4+rpi1^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f5e5ed05526451a5fa2331bea2b76f48f9fd81cf;p=ghc.git Enable GHCi on all platforms in Debian Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/24098 Gbp-Pq: Name hadrian-enable-interpreter --- diff --git a/hadrian/bindist/config.mk.in b/hadrian/bindist/config.mk.in index cb85c67a..7676c0f4 100644 --- a/hadrian/bindist/config.mk.in +++ b/hadrian/bindist/config.mk.in @@ -140,8 +140,8 @@ GhcWithSMP := $(strip $(if $(filter YESNO, $(ArchSupportsSMP)$(GhcUnregisterised # Whether to include GHCi in the compiler. Depends on whether the RTS linker # has support for this OS/ARCH combination. -OsSupportsGHCi=$(strip $(patsubst $(TargetOS_CPP), YES, $(findstring $(TargetOS_CPP), mingw32 linux solaris2 freebsd dragonfly netbsd openbsd darwin kfreebsdgnu))) -ArchSupportsGHCi=$(strip $(patsubst $(TargetArch_CPP), YES, $(findstring $(TargetArch_CPP), i386 x86_64 powerpc powerpc64 powerpc64le sparc sparc64 arm aarch64))) +OsSupportsGHCi=YES +ArchSupportsGHCi=YES ifeq "$(OsSupportsGHCi)$(ArchSupportsGHCi)" "YESYES" GhcWithInterpreter=YES diff --git a/hadrian/src/Oracles/Setting.hs b/hadrian/src/Oracles/Setting.hs index 96356f83..f35033a6 100644 --- a/hadrian/src/Oracles/Setting.hs +++ b/hadrian/src/Oracles/Setting.hs @@ -292,13 +292,8 @@ hostSupportsRPaths = anyHostOs ["linux", "darwin", "freebsd"] -- | Check whether the target supports GHCi. ghcWithInterpreter :: Action Bool ghcWithInterpreter = do - goodOs <- anyTargetOs [ "mingw32", "cygwin32", "linux", "solaris2" - , "freebsd", "dragonfly", "netbsd", "openbsd" - , "darwin", "kfreebsdgnu" ] - goodArch <- anyTargetArch [ "i386", "x86_64", "powerpc" - , "arm", "aarch64", "s390x" - , "powerpc64", "powerpc64le" ] - return $ goodOs && goodArch + -- Enable GHCi on all platforms for Debian + return True -- | Variants of the ARM architecture. data ArmVersion = ARMv5 | ARMv6 | ARMv7