diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-04-04 13:26:38 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2022-04-06 15:19:47 -0400 |
commit | e9386cd17ce11a51c479365255d61b60f11c775c (patch) | |
tree | 69cc199f95e717ff934bebdd515dc22d37e3931f | |
parent | a7a0d009c282eb67e2775d9132c0d5e69083b0db (diff) | |
download | haskell-wip/windows-clang-2.tar.gz |
rts: Adjust RTS symbol table on Windows for ucrtwip/windows-clang-2
-rw-r--r-- | libraries/ghc-prim/ghc-prim.cabal | 2 | ||||
-rw-r--r-- | rts/RtsSymbols.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libraries/ghc-prim/ghc-prim.cabal b/libraries/ghc-prim/ghc-prim.cabal index dbe5d18667..4be29843ae 100644 --- a/libraries/ghc-prim/ghc-prim.cabal +++ b/libraries/ghc-prim/ghc-prim.cabal @@ -68,7 +68,7 @@ Library -- mingw32 which is required by mingwex. -- user32: provides access to apis to modify user components (UI etc) -- on Windows. Required because of mingw32. - extra-libraries: user32, mingw32, mingwex + extra-libraries: user32, mingw32, mingwex, ucrt if os(linux) -- we need libm, but for musl and other's we might need libc, as libm diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c index 5f97568b62..22484ac522 100644 --- a/rts/RtsSymbols.c +++ b/rts/RtsSymbols.c @@ -162,12 +162,12 @@ extern char **environ; SymI_HasProto(stg_asyncDoProczh) \ SymI_HasProto(rts_InstallConsoleEvent) \ SymI_HasProto(rts_ConsoleHandlerDone) \ + SymI_NeedsProto(__mingw_module_is_dll) \ RTS_WIN32_ONLY(SymI_NeedsProto(___chkstk_ms)) \ RTS_WIN64_ONLY(SymI_NeedsProto(___chkstk_ms)) \ - RTS_WIN32_ONLY(SymI_HasProto(_imp___environ)) \ - RTS_WIN64_ONLY(SymI_HasProto(__imp__environ)) \ - RTS_WIN32_ONLY(SymI_HasProto(_imp___iob)) \ - RTS_WIN64_ONLY(SymI_HasProto(__iob_func)) \ + RTS_WIN64_ONLY(SymI_HasProto(__stdio_common_vswprintf_s)) \ + RTS_WIN64_ONLY(SymI_HasProto(__stdio_common_vswprintf)) \ + RTS_WIN64_ONLY(SymI_HasProto(_errno)) \ /* see Note [Symbols for MinGW's printf] */ \ SymI_HasProto(_lock_file) \ SymI_HasProto(_unlock_file) \ |