1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
#!/bin/sh
PICOLIBC_DIR=/build/picolibc
GLIBC_DIR=/build/glibc
set -e
#test=echo
options="-Dwant-math-errno=true -Dio-long-double=true -Dwerror=true -Dmb-capable=true -Dmb-extended-charsets=true -Dsanitize=undefined"
stdoptions="$options --buildtype=release -Ddebug=true"
for arch in aarch64 arm riscv; do
DIR=$PICOLIBC_DIR/builds/build-$arch
$test rm -rf $DIR
$test mkdir -p $DIR
$test cd $DIR
if [ $arch = aarch64 ]; then
conf=$arch-none-elf
else
conf=$arch
fi
echo '###################################'
echo '####' ../../scripts/do-$conf-configure $stdoptions
echo '###################################'
$test ../../scripts/do-$conf-configure $stdoptions
$test ninja
$test meson test -t 10
$test ninja install
done
options="-Dwerror=true"
stdoptions="$options --buildtype=release -Ddebug=true"
for arch in aarch64 arm riscv; do
DIR=$GLIBC_DIR/builds/build-$arch
$test rm -rf $DIR
$test mkdir -p $DIR
$test cd $DIR
echo '###################################'
echo '####' ../../picolibc/do-$arch-configure $stdoptions
echo '###################################'
$test ../../picolibc/do-$arch-configure $stdoptions
$test ninja test
done
|