From df45a06f8959cb5ba52b5ba1d76df42527c1a448 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 8 Nov 2020 17:15:31 +0100 Subject: [PATCH] Don't add .d and .rmeta files to the sysroot Fixes #1106 --- build_sysroot/build_sysroot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build_sysroot/build_sysroot.sh b/build_sysroot/build_sysroot.sh index 19e67380692..c356482058a 100755 --- a/build_sysroot/build_sysroot.sh +++ b/build_sysroot/build_sysroot.sh @@ -37,3 +37,4 @@ fi # Copy files to sysroot mkdir -p "$dir/sysroot/lib/rustlib/$TARGET_TRIPLE/lib/" cp -a "target/$TARGET_TRIPLE/$sysroot_channel/deps/"* "$dir/sysroot/lib/rustlib/$TARGET_TRIPLE/lib/" +rm "$dir/sysroot/lib/rustlib/$TARGET_TRIPLE/lib/"*.{rmeta,d}