[Git][ghc/ghc][wip/ghc-9.8.1] Compability with 9.8.1 as boot compiler
Matthew Pickering (@mpickering)
gitlab at gitlab.haskell.org
Wed Nov 1 11:48:29 UTC 2023
Matthew Pickering pushed to branch wip/ghc-9.8.1 at Glasgow Haskell Compiler / GHC
Commits:
8e06fba1 by Matthew Pickering at 2023-11-01T11:48:04+00:00
Compability with 9.8.1 as boot compiler
This fixes several compatability issues when using 9.8.1 as the boot
compiler.
* An incorrect version guard on the stack decoding logic in ghc-heap
* Some ghc-prim bounds need relaxing
* ghc is no longer wired in, so we have to remove the -this-unit-id ghc
call.
Fixes #24077
- - - - -
6 changed files:
- hadrian/src/Settings/Packages.hs
- libraries/ghc-heap/GHC/Exts/Stack.hs
- libraries/ghc-heap/GHC/Exts/Stack/Constants.hsc
- libraries/ghc-heap/GHC/Exts/Stack/Decode.hs
- libraries/ghc-heap/ghc-heap.cabal.in
- libraries/ghci/ghci.cabal.in
Changes:
=====================================
hadrian/src/Settings/Packages.hs
=====================================
@@ -10,6 +10,7 @@ import Settings.Builders.Common (wayCcArgs)
import GHC.Toolchain.Target
import GHC.Platform.ArchOS
+import Data.Version.Extra
-- | Package-specific command-line arguments.
packageArgs :: Args
@@ -33,6 +34,7 @@ packageArgs = do
cursesLibraryDir <- getSetting CursesLibDir
ffiIncludeDir <- getSetting FfiIncludeDir
ffiLibraryDir <- getSetting FfiLibDir
+ stageVersion <- readVersion <$> (expr $ ghcVersionStage stage)
mconcat
--------------------------------- base ---------------------------------
@@ -83,7 +85,7 @@ packageArgs = do
-- not being fixed to `ghc`, when building stage0, we must set
-- -this-unit-id to `ghc` because the boot compiler expects that.
-- We do it through a cabal flag in ghc.cabal
- , stage0 ? arg "+hadrian-stage0"
+ , stageVersion < makeVersion [9,8,1] ? arg "+hadrian-stage0"
, flag StaticLibzstd `cabalFlag` "static-libzstd"
]
=====================================
libraries/ghc-heap/GHC/Exts/Stack.hs
=====================================
@@ -1,5 +1,5 @@
{-# LANGUAGE CPP #-}
-#if MIN_TOOL_VERSION_ghc(9,7,0)
+#if MIN_TOOL_VERSION_ghc(9,9,0)
{-# LANGUAGE RecordWildCards #-}
module GHC.Exts.Stack
=====================================
libraries/ghc-heap/GHC/Exts/Stack/Constants.hsc
=====================================
@@ -3,7 +3,7 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module GHC.Exts.Stack.Constants where
-#if MIN_TOOL_VERSION_ghc(9,7,0)
+#if MIN_TOOL_VERSION_ghc(9,9,0)
import Prelude
=====================================
libraries/ghc-heap/GHC/Exts/Stack/Decode.hs
=====================================
@@ -1,5 +1,5 @@
{-# LANGUAGE CPP #-}
-#if MIN_TOOL_VERSION_ghc(9,7,0)
+#if MIN_TOOL_VERSION_ghc(9,9,0)
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE FlexibleInstances #-}
=====================================
libraries/ghc-heap/ghc-heap.cabal.in
=====================================
@@ -23,7 +23,7 @@ library
default-language: Haskell2010
build-depends: base >= 4.9.0 && < 5.0
- , ghc-prim > 0.2 && < 0.11
+ , ghc-prim > 0.2 && < 0.12
, rts == 1.0.*
, containers >= 0.6.2.1 && < 0.7
=====================================
libraries/ghci/ghci.cabal.in
=====================================
@@ -76,7 +76,7 @@ library
rts,
array == 0.5.*,
base >= 4.8 && < 4.20,
- ghc-prim >= 0.5.0 && < 0.11,
+ ghc-prim >= 0.5.0 && < 0.12,
binary == 0.8.*,
bytestring >= 0.10 && < 0.13,
containers >= 0.5 && < 0.7,
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8e06fba144f86821330d2b5fdc546b3219d927fe
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8e06fba144f86821330d2b5fdc546b3219d927fe
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20231101/66c2f3e8/attachment-0001.html>
More information about the ghc-commits
mailing list