We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67085d commit a776c9bCopy full SHA for a776c9b
haskell/toolchain.bzl
@@ -262,6 +262,16 @@ def _haskell_toolchain_libraries(ctx, libraries):
262
libs[libname] = {"dynamic": lib}
263
for lib in target[HaskellImportHack].static_libraries.to_list():
264
name = get_static_hs_lib_name(with_profiling, lib)
265
+
266
+ # with GHC >= 9.4.1 the rts library has a version number
267
+ # included in the name.
268
+ # for handling single-threaded and threading variants below,
269
+ # we normalize the name and strip the version number
270
+ if name.startswith("HSrts-"):
271
+ idx = name.find("_")
272
+ suffix = name[idx:] if idx > 0 else ""
273
+ name = "HSrts" + suffix
274
275
entry = libs.get(name, {})
276
entry["static"] = lib
277
libs[name] = entry
0 commit comments