diff options
author | Stéphan Kochen <git@stephank.nl> | 2022-10-19 22:51:27 +0200 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2022-10-20 09:02:51 +1000 |
commit | da85286b28f0be9029a514fcba29ee13d9762317 (patch) | |
tree | 069630fe0e0684725dcfa7d44f38b06f71768ecb /pkgs/development/compilers/rust | |
parent | 958cbc7d51ec9a4bacafebee5f39f48ffd98e146 (diff) | |
download | nixlib-da85286b28f0be9029a514fcba29ee13d9762317.tar nixlib-da85286b28f0be9029a514fcba29ee13d9762317.tar.gz nixlib-da85286b28f0be9029a514fcba29ee13d9762317.tar.bz2 nixlib-da85286b28f0be9029a514fcba29ee13d9762317.tar.lz nixlib-da85286b28f0be9029a514fcba29ee13d9762317.tar.xz nixlib-da85286b28f0be9029a514fcba29ee13d9762317.tar.zst nixlib-da85286b28f0be9029a514fcba29ee13d9762317.zip |
rustc: don't strip bootstrap on darwin
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/binary.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/binary.nix b/pkgs/development/compilers/rust/binary.nix index 6c3751cbb575..1de90cdddacf 100644 --- a/pkgs/development/compilers/rust/binary.nix +++ b/pkgs/development/compilers/rust/binary.nix @@ -52,6 +52,12 @@ rec { # https://github.com/rust-lang/rust/issues/34722#issuecomment-232164943 ''; + # The strip tool in cctools 973.0.1 and up appears to break rlibs in the + # binaries. The lib.rmeta object inside the ar archive should contain an + # .rmeta section, but it is removed. Luckily, this doesn't appear to be an + # issue for Rust builds produced by Nix. + dontStrip = stdenv.isDarwin; + setupHooks = ./setup-hook.sh; }; |