File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 37
37
rm -rf " $target_dir "
38
38
mkdir " $target_dir "
39
39
mkdir " $target_dir " /bin " $target_dir " /lib
40
- cp -a target/$CHANNEL /cg_clif{,_build_sysroot} " $target_dir " /bin
41
- cp -a target/$CHANNEL /* rustc_codegen_cranelift* " $target_dir " /lib
42
- cp -a rust-toolchain scripts/config.sh scripts/cargo.sh " $target_dir "
40
+ ln target/$CHANNEL /cg_clif{,_build_sysroot} " $target_dir " /bin
41
+ ln target/$CHANNEL /* rustc_codegen_cranelift* " $target_dir " /lib
42
+ ln rust-toolchain scripts/config.sh scripts/cargo.sh " $target_dir "
43
43
44
44
if [[ " $build_sysroot " == " 1" ]]; then
45
45
echo " [BUILD] sysroot"
Original file line number Diff line number Diff line change 36
36
37
37
# Copy files to sysroot
38
38
mkdir -p " $dir /lib/rustlib/$TARGET_TRIPLE /lib/"
39
- cp -a " target/$TARGET_TRIPLE /$sysroot_channel /deps/" * " $dir /lib/rustlib/$TARGET_TRIPLE /lib/"
39
+ ln " target/$TARGET_TRIPLE /$sysroot_channel /deps/" * " $dir /lib/rustlib/$TARGET_TRIPLE /lib/"
40
40
rm " $dir /lib/rustlib/$TARGET_TRIPLE /lib/" * .{rmeta,d}
You can’t perform that action at this time.
0 commit comments