Add libstd.so to sysroot
This commit is contained in:
parent
3000a3f63d
commit
1538f7488e
@ -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/
|
||||
|
2
test.sh
2
test.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user