Skip to content

Commit

Permalink
fix(rs): do not remove vendor refs on Darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
  • Loading branch information
rvolosatovs committed Nov 8, 2024
1 parent 0046725 commit 7b83953
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/rust/mkAttrs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,10 @@ with self.lib.rust.targets;

CARGO_BUILD_TARGET = target;
}
// optionalAttrs (pkgsCross.stdenv.hostPlatform.isDarwin && pkgsCross.stdenv.hostPlatform.isAarch64) {
# Removing vendor references here invalidates the signature, which is required on aarch64-darwin
// optionalAttrs pkgsCross.stdenv.hostPlatform.isDarwin {
# Removing vendor references here:
# - invalidates the signature, which is required on aarch64-darwin
# - fails on Darwin dylibs starting with Rust 1.79
doNotRemoveReferencesToVendorDir = true;
}
# Use `rust-lld` linker and Zig C compiler for Darwin targets
Expand Down

0 comments on commit 7b83953

Please sign in to comment.