Skip to content

Commit e244e49

Browse files
authored
Merge pull request rust-lang#19 from ids1024/xargo
Setup xargo/rustup in setup.sh for newlib
2 parents 5402fad + 38e801a commit e244e49

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

setup.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ function gcc_freestanding {
6363
function newlib {
6464
NEWLIB="${ROOT}/newlib"
6565

66+
echo "Defaulting to rust nightly"
67+
rustup override set nightly
68+
echo "Update rust nightly"
69+
rustup update nightly
70+
echo "Downloading rust source"
71+
rustup component add rust-src
72+
if [ -z "$(which xargo)" ]
73+
then
74+
echo "Installing xargo"
75+
cargo install -f xargo
76+
fi
77+
6678
pushd "${NEWLIB}/newlib/libc/sys"
6779
aclocal-1.11 -I ../..
6880
autoconf

0 commit comments

Comments
 (0)