Fix sysroot of miri

This commit is contained in:
oxalica 2021-01-15 23:33:54 +08:00
parent 2048947f12
commit 80287ab66a

View File

@ -248,7 +248,7 @@ let
# If rustc or rustdoc is in the derivation, we need to copy their
# executable into the final derivation. This is required
# for making them find the correct SYSROOT.
for target in $out/bin/{rustc,rustdoc}; do
for target in $out/bin/{rustc,rustdoc,miri}; do
if [ -e $target ]; then
cp --remove-destination "$(realpath -e $target)" $target
fi