daml/bazel_tools/haskell-windows-extra-libraries.patch
Moritz Kiefer 7bcce7c1aa
Upgrade rules-haskell (#12580)
Spun out from the GHC 9 upgrade.

changelog_begin
changelog_end
2022-01-26 10:12:30 +01:00

19 lines
820 B
Diff

diff --git a/haskell/private/actions/package.bzl b/haskell/private/actions/package.bzl
index fddf30fd..564da872 100644
--- a/haskell/private/actions/package.bzl
+++ b/haskell/private/actions/package.bzl
@@ -105,7 +105,12 @@ def package(
"library-dirs": [pkgroot_lib_path] + extra_lib_dirs,
"dynamic-library-dirs": [pkgroot_lib_path] + extra_dynamic_lib_dirs,
"hs-libraries": [pkg_id.library_name(hs, my_pkg_id)] if has_hs_library else [],
- "extra-libraries": extra_libs,
+ "extra-libraries": extra_libs + ([
+ "stdc++",
+ "crypt32",
+ "shlwapi",
+ "ws2_32",
+ ] if hs.toolchain.is_windows else []),
"depends": hs.package_ids,
# TODO[AH] Add haskell_module modules
"exposed-modules": exposed_modules,