llvmPackages.libunwind: fix mingw build problem (#379996)

This commit is contained in:
John Ericson
2025-03-27 20:49:33 -04:00
committed by GitHub
@@ -48,9 +48,11 @@ let
cd ../runtimes
'';
postInstall = lib.optionalString (enableShared && !stdenv.hostPlatform.isDarwin) ''
postInstall = lib.optionalString (enableShared && !stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isWindows) ''
# libcxxabi wants to link to libunwind_shared.so (?).
ln -s $out/lib/libunwind.so $out/lib/libunwind_shared.so
'' + lib.optionalString (enableShared && stdenv.hostPlatform.isWindows) ''
ln -s $out/lib/libunwind.dll.a $out/lib/libunwind_shared.dll.a
'';
in
stdenv.mkDerivation (rec {