git.iko.soy/typeable/nixpkgs
on master help sign in
rustc: Fix corrupted .rlib files caused by stripping on Darwin
commit7857399288e9c9e04569f777912789118b215a2a authorAndrew Childs <lorne@cons.org.nz> dateWed 24 Jan 2018, 20:34 (9 years ago) parentb0dd3a1
1 file changed+6
pkgs/development/compilers/rust/rustc.nix+6
pkgs/development/compilers/rust/rustc.nix+6
@@ -37,6 +37,12 @@ stdenv.mkDerivation {
3737 # The build will fail at the very end on AArch64 without this.
3838 dontUpdateAutotoolsGnuConfigScripts = if stdenv.isAarch64 then true else null;
3939
40+ # Running the default `strip -S` command on Darwin corrupts the
41+ # .rlib files in "lib/".
42+ #
43+ # See https://github.com/NixOS/nixpkgs/pull/34227
44+ stripDebugList = if stdenv.isDarwin then [ "bin" ] else null;
45+
4046 NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${llvmShared}/lib";
4147
4248 # Enable nightly features in stable compiles (used for