add libunwind

This commit is contained in:
Clément DOUIN 2024-11-26 09:58:29 +01:00
parent 98715db67b
commit 5a1a835791
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72
2 changed files with 4 additions and 1 deletions

View file

@ -54,6 +54,7 @@ let
pkg-config = pkgs.pkg-config;
buildNoDefaultFeatures = !defaultFeatures;
buildFeatures = lib.strings.splitString "," features;
libunwind = pkgs.libunwind;
};
# HACK: https://github.com/NixOS/nixpkgs/issues/177129

View file

@ -1,4 +1,5 @@
{ lib
, libunwind
, pkg-config
, rustPlatform
, windows
@ -31,10 +32,11 @@ rustPlatform.buildRustPackage rec {
NIX_LDFLAGS = lib.optionals (stdenv.hostPlatform.isWindows && stdenv.hostPlatform.isi686) [
"-L${windows.mcfgthreads}/lib"
"-L${libunwind}/lib"
# "-L${windows.mingwrt}/lib"
#"-L${windows.w32api}/lib"
"-lmcfgthread"
#"-lunwind"
"-lunwind"
];
# unit tests only