@@ -142,6 +142,8 @@ ghcLibParserHsSrcDirs forDepends ghcFlavor lib =
142142 GHC_8_8 -> [" compiler/codeGen" , " compiler/hieFile" , " compile/llvmGen" , " compiler/stranal" , " compiler/rename" , " compiler/stgSyn" , " compiler/llvmGen" ]
143143 GHC_8_10 -> [" compiler/nativeGen" , " compiler/deSugar" , " compiler/hieFile" , " compiler/llvmGen" , " compiler/stranal" , " compiler/rename" , " compiler/stgSyn" ]
144144 GHC_9_10 -> [" libraries/ghc-internal/src" ]
145+ GHC_9_12 -> [" utils/ghc-toolchain/src" | ghcFlavor >= Ghc9123 ]
146+ GHC_9_14 -> [" utils/ghc-toolchain/src" ]
145147 _ -> []
146148 in sortDiffListByLength all $ Set. fromList [dir | not forDepends, dir <- exclusions]
147149
@@ -159,9 +161,9 @@ ghcLibHsSrcDirs forDepends ghcFlavor lib =
159161 GHC_9_6 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " libraries/ghc-heap" , " libraries/ghci" ]
160162 GHC_9_8 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " libraries/ghc-heap" , " libraries/ghc-platform/src" , " libraries/ghc-platform" ]
161163 GHC_9_10 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " libraries/ghc-heap" , " libraries/ghc-platform/src" , " libraries/ghc-platform" , " libraries/ghci" , " libraries/ghc-internal/src" ]
162- GHC_9_12 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " libraries/ghc-heap" , " libraries/ghc-platform/src" , " libraries/ghc-platform" , " libraries/ghci" ]
163- GHC_9_14 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " " , " libraries/ghc-heap" , " libraries/ghc-platform/src" , " libraries/ghc-platform" , " libraries/ghci" ]
164- GHC_9_16 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " " , " libraries/ghc-heap" , " libraries/ghc-platform/src" , " libraries/ghc-platform" , " libraries/ghci" , " libraries/ghc-internal" ]
164+ GHC_9_12 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " libraries/ghc-heap" , " libraries/ghc-platform/src" , " libraries/ghc-platform" , " libraries/ghci" ] ++ [ " utils/ghc-toolchain/src " | ghcFlavor >= Ghc9123 ]
165+ GHC_9_14 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " " , " libraries/ghc-heap" , " libraries/ghc-platform/src" , " libraries/ghc-platform" , " libraries/ghci" , " libraries/ghc-internal/src " , " utils/ghc-toolchain/src " ]
166+ GHC_9_16 -> [" libraries/template-haskell" , " libraries/ghc-boot-th" , " libraries/ghc-boot" , " " , " libraries/ghc-heap" , " libraries/ghc-platform/src" , " libraries/ghc-platform" , " libraries/ghci" , " libraries/ghc-internal" , " libraries/ghc-internal/src " , " utils/ghc-toolchain/src " ]
165167 in sortDiffListByLength all $ Set. fromList [dir | not forDepends, dir <- exclusions]
166168
167169-- File path constants.
@@ -1377,6 +1379,7 @@ baseBounds = \case
13771379 -- base-4.21.0.0
13781380 Ghc9121 -> " base >= 4.19 && < 4.22" -- [ghc-9.8.1, ghc-9.14.1)
13791381 Ghc9122 -> " base >= 4.19 && < 4.22" -- [ghc-9.8.1, ghc-9.14.1)
1382+ Ghc9123 -> " base >= 4.19 && < 4.22" -- [ghc-9.8.1, ghc-9.14.1)
13801383 -- base-4.21.0.0
13811384 Ghc9141 -> " base >= 4.20 && < 4.23" -- [ghc-9.10.1, ghc-9.16.1)
13821385 GhcMaster ->
@@ -1598,14 +1601,14 @@ generateGhcLibCabal ghcFlavor customCppOpts = do
15981601 " ghc-options: -fno-safe-haskell"
15991602 ],
16001603 [ " if flag(threaded-rts)" ,
1601- " if impl(ghc < 9.14.0 )" ,
1604+ " if impl(ghc < 9.12.3 )" ,
16021605 " ghc-options: -fobject-code -package=ghc-boot-th -optc-DTHREADED_RTS" ,
16031606 " else" ,
16041607 " ghc-options: -fobject-code -optc-DTHREADED_RTS" ,
16051608 " cc-options: -DTHREADED_RTS" ,
16061609 " cpp-options: -DTHREADED_RTS " ++ generateCppOpts ghcFlavor customCppOpts,
16071610 " else" ,
1608- " if impl(ghc < 9.14.0 )" ,
1611+ " if impl(ghc < 9.12.3 )" ,
16091612 " ghc-options: -fobject-code -package=ghc-boot-th" ,
16101613 " else" ,
16111614 " ghc-options: -fobject-code" ,
@@ -1716,11 +1719,17 @@ generateGhcLibParserCabal ghcFlavor customCppOpts = do
17161719 " ghc-options: -fno-safe-haskell"
17171720 ],
17181721 [ " if flag(threaded-rts)" ,
1719- " ghc-options: -fobject-code -package=ghc-boot-th -optc-DTHREADED_RTS" ,
1722+ " if impl(ghc < 9.12.3)" ,
1723+ " ghc-options: -fobject-code -package=ghc-boot-th -optc-DTHREADED_RTS" ,
1724+ " else" ,
1725+ " ghc-options: -fobject-code -optc-DTHREADED_RTS" ,
17201726 " cc-options: -DTHREADED_RTS" ,
17211727 " cpp-options: -DTHREADED_RTS " ++ generateCppOpts ghcFlavor customCppOpts,
17221728 " else" ,
1723- " ghc-options: -fobject-code -package=ghc-boot-th" ,
1729+ " if impl(ghc < 9.12.3)" ,
1730+ " ghc-options: -fobject-code -package=ghc-boot-th" ,
1731+ " else" ,
1732+ " ghc-options: -fobject-code" ,
17241733 " cpp-options: " ++ generateCppOpts ghcFlavor customCppOpts
17251734 ],
17261735 [ " if !os(windows)" ,
0 commit comments