From a3e0ad7f3bb86c3d35ca50177050102b9bba9cda Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Tue, 17 Oct 2023 10:34:10 +0200 Subject: [PATCH] Remove `libc++.dll.a` to enforce static linking to `libc++` --- haskell/ghc_bindist.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/haskell/ghc_bindist.bzl b/haskell/ghc_bindist.bzl index 7eda2dd22a..0cbff65308 100644 --- a/haskell/ghc_bindist.bzl +++ b/haskell/ghc_bindist.bzl @@ -122,6 +122,9 @@ def _ghc_bindist_impl(ctx): # on //tests/haddock:haddock-lib-b. dll_a_libs.append("libz.dll.a") + # Similarly causes loading issues when using libc++ with clang on GHC >= 9.4 + dll_a_libs.append("libc++.dll.a") + # It's hard to guesss the paths of these libraries, so we have to use # dir to recursively find them. for lib in dll_a_libs: