mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-20 20:04:19 +08:00
19 lines
430 B
Bash
Executable File
19 lines
430 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "Defaulting to rust nightly"
|
|
rustup default nightly
|
|
echo "Downloading rust source"
|
|
rustup component add rust-src
|
|
echo "Installing xargo"
|
|
cargo install -f xargo
|
|
|
|
echo "Building libstd"
|
|
./cook.sh libstd unfetch
|
|
./cook.sh libstd fetch
|
|
./cook.sh libstd build
|
|
cp recipes/libstd/build/target/x86_64-unknown-redox/debug/deps/*.rlib ~/.xargo/lib/rustlib/x86_64-unknown-redox/lib/
|
|
|
|
echo "cook.sh is ready to use"
|