1#!/bin/sh 2 3PICOLIBC_DIR=/build/picolibc 4GLIBC_DIR=/build/glibc 5 6set -e 7 8#test=echo 9 10options="-Dwant-math-errno=true -Dio-long-double=true -Dwerror=true -Dnewlib-mb=true" 11minoptions="$options" 12reloptions="$options --buildtype=release -Dbuild-type-subdir=release -Dwerror=true" 13 14for arch in arm riscv; do 15 16 DIR=$PICOLIBC_DIR/builds/build-$arch-minsize 17 18 $test rm -rf $DIR 19 $test mkdir -p $DIR 20 $test cd $DIR 21 22 echo '###################################' 23 echo '####' ../../scripts/do-$arch-configure $options 24 echo '###################################' 25 26 $test ../../scripts/do-$arch-configure $options 27 $test ninja test install 28 29 DIR=$PICOLIBC_DIR/builds/build-$arch-release 30 31 $test rm -rf $DIR 32 $test mkdir -p $DIR 33 $test cd $DIR 34 35 echo '###################################' 36 echo '####' ../../scripts/do-$arch-configure $reloptions 37 echo '###################################' 38 39 $test ../../scripts/do-$arch-configure $reloptions 40 $test ninja test install 41 42done 43 44options="-Dwerror=true" 45minoptions="$options --buildtype=minsize" 46reloptions="$options --buildtype=release -Dpicolibc-buildtype=release" 47 48for arch in arm riscv; do 49 50 DIR=$GLIBC_DIR/builds/build-$arch-minsize 51 52 $test rm -rf $DIR 53 $test mkdir -p $DIR 54 $test cd $DIR 55 56 echo '###################################' 57 echo '####' ../../picolibc/do-$arch-configure $minoptions 58 echo '###################################' 59 60 $test ../../picolibc/do-$arch-configure $minoptions 61 $test ninja test 62 63 DIR=$GLIBC_DIR/builds/build-$arch-release 64 65 $test rm -rf $DIR 66 $test mkdir -p $DIR 67 $test cd $DIR 68 69 echo '###################################' 70 echo '####' ../../picolibc/do-$arch-configure $reloptions 71 echo '###################################' 72 73 $test ../../picolibc/do-$arch-configure $reloptions 74 $test ninja test 75 76done 77