Skip to content

Commit 33cd29e

Browse files
authored
Add patch for undefined __acrt_iob_func issue (#870)
1 parent 6f73f8a commit 33cd29e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

overlays/bootstrap.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ in {
135135
++ final.lib.optional (versionAtLeast "8.6.4" && versionLessThan "8.8") ./patches/ghc/ghc-no-system-linker.patch
136136

137137
++ fromUntil "8.10.2" "8.12" ./patches/ghc/MR3714-backported-to-8.10.2.patch
138+
139+
++ from "8.10.1" ./patches/ghc/ghc-acrt-iob-func.patch
138140
;
139141
in ({
140142
ghc844 = 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/RtsSymbols.c b/rts/RtsSymbols.c
2+
index b2f90a892d..c552652247 100644
3+
--- a/rts/RtsSymbols.c
4+
+++ b/rts/RtsSymbols.c
5+
@@ -140,6 +140,7 @@
6+
RTS_WIN64_ONLY(SymI_HasProto(__imp__environ)) \
7+
RTS_WIN32_ONLY(SymI_HasProto(_imp___iob)) \
8+
RTS_WIN64_ONLY(SymI_HasProto(__iob_func)) \
9+
+ RTS_WIN64_ONLY(SymI_HasProto(__acrt_iob_func)) \
10+
/* see Note [Symbols for MinGW's printf] */ \
11+
SymI_HasProto(_lock_file) \
12+
SymI_HasProto(_unlock_file) \

0 commit comments

Comments
 (0)