Merge pull request #34227 from thefloweringash/rust-darwin-dont-strip
rustc: Fix corrupted .rlib files caused by stripping on Darwin
This commit is contained in:
commit
b119c18e92
@ -37,6 +37,12 @@ stdenv.mkDerivation {
|
||||
# The build will fail at the very end on AArch64 without this.
|
||||
dontUpdateAutotoolsGnuConfigScripts = if stdenv.isAarch64 then true else null;
|
||||
|
||||
# Running the default `strip -S` command on Darwin corrupts the
|
||||
# .rlib files in "lib/".
|
||||
#
|
||||
# See https://github.com/NixOS/nixpkgs/pull/34227
|
||||
stripDebugList = if stdenv.isDarwin then [ "bin" ] else null;
|
||||
|
||||
NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${llvmShared}/lib";
|
||||
|
||||
# Enable nightly features in stable compiles (used for
|
||||
|
Loading…
Reference in New Issue
Block a user