sponges/build_nostd.sh
2018-03-21 16:19:00 +03:00

22 lines
562 B
Bash
Executable File

#!/bin/sh
# Due to the fact that cargo does not disable default features when we use
# cargo build --all --no-default-features we have to explicitly iterate over
# all crates (see https://github.com/rust-lang/cargo/issues/4753 )
DIRS=`ls -d */`
TARGET="thumbv7em-none-eabi"
cargo clean
for dir in $DIRS; do
# disable check for aesni, as it requires x86
if [ $dir = "target/" ]
then
continue
fi
cd $dir
xargo build --no-default-features --verbose --target $TARGET || {
echo $dir failed
exit 1
}
cd ..
done