rustc: fix rust-gdb, rust-gdbgui and rust-lldb on cross compilers

Since cross compilers can also build code for the build platform, we
should also install these debug scripts so they are available just like
in our non-cross rustc.

Changed files
+3 -3
pkgs
development
compilers
rust
+3 -3
pkgs/development/compilers/rust/rustc.nix
···
runHook preInstall
python ./x.py --keep-stage=0 --stage=1 install library/std
-
mkdir -v $out/bin $doc $man
-
ln -s ${rustc.unwrapped}/bin/{rustc,rustdoc} $out/bin
-
ln -s ${rustc.unwrapped}/libexec $out
rm -rf -v $out/lib/rustlib/{manifest-rust-std-,}${stdenv.hostPlatform.rust.rustcTargetSpec}
ln -s ${rustc.unwrapped}/lib/rustlib/{manifest-rust-std-,}${stdenv.hostPlatform.rust.rustcTargetSpec} $out/lib/rustlib/
echo rust-std-${stdenv.hostPlatform.rust.rustcTargetSpec} >> $out/lib/rustlib/components
lndir ${rustc.doc} $doc
lndir ${rustc.man} $man
···
runHook preInstall
python ./x.py --keep-stage=0 --stage=1 install library/std
+
mkdir -v $doc $man
+
ln -s ${rustc.unwrapped}/{bin,libexec} $out
rm -rf -v $out/lib/rustlib/{manifest-rust-std-,}${stdenv.hostPlatform.rust.rustcTargetSpec}
ln -s ${rustc.unwrapped}/lib/rustlib/{manifest-rust-std-,}${stdenv.hostPlatform.rust.rustcTargetSpec} $out/lib/rustlib/
+
ln -s ${rustc.unwrapped}/lib/rustlib/etc $out/lib/rustlib/
echo rust-std-${stdenv.hostPlatform.rust.rustcTargetSpec} >> $out/lib/rustlib/components
lndir ${rustc.doc} $doc
lndir ${rustc.man} $man