Commit 7118a85d authored by Greg Hellings's avatar Greg Hellings
Browse files

llvmPackages.libunwind: fix mingw build problem

Fixes a broken symlink in the MinGW targets for the shared library

Fixes #379993
parent 3588c602
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -44,9 +44,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 {