git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #34227 from thefloweringash/rust-darwin-dont-strip

rustc: Fix corrupted .rlib files caused by stripping on Darwin

commitb119c18e92dcfbfb437b6af4401cb1cb021e1ecd authorDaiderd Jordan <daiderd@gmail.com> dateSat 27 Jan 2018, 18:25 (9 years ago) parent38fbc937857399
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