Merge pull request #1111 from jakobhellermann/hardlinks-instead-of-copy
use hardlinks instead of copying files
This commit is contained in:
commit
0a4f37c1fa
6
build.sh
6
build.sh
@ -37,9 +37,9 @@ fi
|
||||
rm -rf "$target_dir"
|
||||
mkdir "$target_dir"
|
||||
mkdir "$target_dir"/bin "$target_dir"/lib
|
||||
cp -a target/$CHANNEL/cg_clif{,_build_sysroot} "$target_dir"/bin
|
||||
cp -a target/$CHANNEL/*rustc_codegen_cranelift* "$target_dir"/lib
|
||||
cp -a rust-toolchain scripts/config.sh scripts/cargo.sh "$target_dir"
|
||||
ln target/$CHANNEL/cg_clif{,_build_sysroot} "$target_dir"/bin
|
||||
ln target/$CHANNEL/*rustc_codegen_cranelift* "$target_dir"/lib
|
||||
ln rust-toolchain scripts/config.sh scripts/cargo.sh "$target_dir"
|
||||
|
||||
if [[ "$build_sysroot" == "1" ]]; then
|
||||
echo "[BUILD] sysroot"
|
||||
|
@ -36,5 +36,5 @@ fi
|
||||
|
||||
# Copy files to sysroot
|
||||
mkdir -p "$dir/lib/rustlib/$TARGET_TRIPLE/lib/"
|
||||
cp -a "target/$TARGET_TRIPLE/$sysroot_channel/deps/"* "$dir/lib/rustlib/$TARGET_TRIPLE/lib/"
|
||||
ln "target/$TARGET_TRIPLE/$sysroot_channel/deps/"* "$dir/lib/rustlib/$TARGET_TRIPLE/lib/"
|
||||
rm "$dir/lib/rustlib/$TARGET_TRIPLE/lib/"*.{rmeta,d}
|
||||
|
Loading…
x
Reference in New Issue
Block a user