diff options
author | Michael Eden <themichaeleden@gmail.com> | 2019-03-13 12:52:01 -0400 |
---|---|---|
committer | John Ericson <git@JohnEricson.me> | 2019-03-29 11:11:55 -0400 |
commit | 839152809645ad3a40c033d6ae3e754fd8a44aa2 (patch) | |
tree | f3b0dbdcd1d369cd64c9db32e34b332b5019ed1e /pkgs/development/compilers/rust | |
parent | 54e908237550b95080d262143c121f064dbd6ff0 (diff) | |
download | nixlib-839152809645ad3a40c033d6ae3e754fd8a44aa2.tar nixlib-839152809645ad3a40c033d6ae3e754fd8a44aa2.tar.gz nixlib-839152809645ad3a40c033d6ae3e754fd8a44aa2.tar.bz2 nixlib-839152809645ad3a40c033d6ae3e754fd8a44aa2.tar.lz nixlib-839152809645ad3a40c033d6ae3e754fd8a44aa2.tar.xz nixlib-839152809645ad3a40c033d6ae3e754fd8a44aa2.tar.zst nixlib-839152809645ad3a40c033d6ae3e754fd8a44aa2.zip |
rust: disable stripping to prevent bad cross rlibs
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/rustc.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix index 631c20d16c6c..48ac4698a14b 100644 --- a/pkgs/development/compilers/rust/rustc.nix +++ b/pkgs/development/compilers/rust/rustc.nix @@ -33,7 +33,10 @@ in stdenv.mkDerivation rec { # .rlib files in "lib/". # # See https://github.com/NixOS/nixpkgs/pull/34227 - stripDebugList = if stdenv.isDarwin then [ "bin" ] else null; + # + # Running `strip -S` when cross compiling can harm the cross rlibs. + # See: https://github.com/NixOS/nixpkgs/pull/56540#issuecomment-471624656 + stripDebugList = [ "bin" ]; NIX_LDFLAGS = |