Skip to content

Commit e73f8f6

Browse files
authored
ghc-lib-parser-9.4: add global unique counters patch (#1580)
1 parent fa2c3ec commit e73f8f6

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

modules/configuration-nix.nix

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ in {
6060
packages.ghc-lib-parser.patches = [
6161
(fromUntil "8.10.0.0" "9.2" ../overlays/patches/ghc-lib-parser-8.10-global-unique-counters-in-rts.patch)
6262
(fromUntil "9.2.0.0" "9.3" ../overlays/patches/ghc-lib-parser-9.2-global-unique-counters-in-rts.patch)
63+
(fromUntil "9.4.0.0" "9.5" ../overlays/patches/ghc-lib-parser-9.4-global-unique-counters-in-rts.patch)
6364
];
6465

6566
# See https://github.com/haskell-nix/hnix/pull/1053
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/compiler/cbits/genSym.c b/compiler/cbits/genSym.c
2+
index 0897547..8627f5a 100644
3+
--- a/compiler/cbits/genSym.c
4+
+++ b/compiler/cbits/genSym.c
5+
@@ -9,7 +9,7 @@
6+
//
7+
// The CPP is thus about the RTS version GHC is linked against, and not the
8+
// version of the GHC being built.
9+
-#if !MIN_VERSION_GLASGOW_HASKELL(9,3,0,0)
10+
+#if !MIN_VERSION_GLASGOW_HASKELL(9,2,0,0)
11+
HsInt ghc_unique_counter = 0;
12+
HsInt ghc_unique_inc = 1;
13+
#endif

0 commit comments

Comments
 (0)