Skip to content

Commit 936fa02

Browse files
committed
Fix fatal error: 'rts/Types.h' file not found
1 parent a213a0b commit 936fa02

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

overlays/bootstrap.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ in {
331331

332332
++ onAndroid (from "9.6" ./patches/ghc/ghc-9.6-COMPAT_R_ARM_PREL31.patch)
333333
++ onAndroid (from "9.10" ./patches/ghc/ghc-9.10-ignore-libc.patch)
334+
335+
# Fix for `fatal error: 'rts/Types.h' file not found` when building `primitive`
336+
++ onGhcjs (from "9.13" ./patches/ghc/ghc-9.13-ghcjs-rts-types.patch)
334337
;
335338
in ({
336339
ghc8107 = traceWarnOld "8.10" (final.callPackage ../compiler/ghc {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/rts/rts.cabal b/rts/rts.cabal
2+
index 899e65d712..84dac99f54 100644
3+
--- a/rts/rts.cabal
4+
+++ b/rts/rts.cabal
5+
@@ -160,6 +160,7 @@ library
6+
stg/MachRegs/x86.h
7+
stg/MachRegsForHost.h
8+
stg/Types.h
9+
+ rts/Types.h
10+
11+
else
12+
-- If we are using an in-tree libffi then we must declare it as a bundled

0 commit comments

Comments
 (0)