Add libstd.so to sysroot

This commit is contained in:
bjorn3 2019-08-10 16:56:19 +02:00
parent 3000a3f63d
commit 1538f7488e
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ fi
# Copy files to sysroot
mkdir -p sysroot/lib/rustlib/$TARGET_TRIPLE/lib/
cp target/$TARGET_TRIPLE/$sysroot_channel/deps/*.rlib sysroot/lib/rustlib/$TARGET_TRIPLE/lib/
cp target/$TARGET_TRIPLE/$sysroot_channel/deps/* sysroot/lib/rustlib/$TARGET_TRIPLE/lib/
if [[ "$1" == "--release" ]]; then
channel='release'
@ -39,4 +39,4 @@ else
fi
# Copy files to sysroot
cp sysroot_src/src/libtest/target/$TARGET_TRIPLE/$sysroot_channel/deps/*.rlib sysroot/lib/rustlib/$TARGET_TRIPLE/lib/
cp sysroot_src/src/libtest/target/$TARGET_TRIPLE/$sysroot_channel/deps/* sysroot/lib/rustlib/$TARGET_TRIPLE/lib/

View File

@ -33,7 +33,7 @@ $RUSTC example/arbitrary_self_types_pointers_and_wrappers.rs --crate-name arbitr
./target/out/arbitrary_self_types_pointers_and_wrappers
echo "[BUILD] sysroot"
#time ./build_sysroot/build_sysroot.sh
time ./build_sysroot/build_sysroot.sh
echo "[AOT] alloc_example"
$RUSTC example/alloc_example.rs --crate-type bin