newlib: travis-ci madness

This commit is contained in:
Giacomo Tesio 2017-04-22 17:45:40 +02:00
parent 0e734fcf74
commit b8d535da58
1 changed files with 7 additions and 5 deletions

View File

@ -36,10 +36,12 @@ function failOnError {
# $2 -> task description # $2 -> task description
if [ $1 -ne 0 ]; then if [ $1 -ne 0 ]; then
echo "ERROR $2" echo "ERROR $2"
if [ "$TRAVIS_BUILD_DIR" != "" ]; then
echo echo
echo "CONFIG.LOG @ $NEWLIB_BUILD/config.log" echo "CONFIG.LOG @ $NEWLIB_BUILD/config.log"
echo echo
cat $NEWLIB_BUILD/config.log cat $NEWLIB_BUILD/config.log
fi
exit $1 exit $1
fi fi
} }
@ -58,7 +60,7 @@ export CFLAGS_FOR_TARGET="-g -gdwarf-2 -ggdb -O$NEWLIB_OPTIMIZATION"
mkdir $NEWLIB_BUILD && mkdir $NEWLIB_BUILD &&
mkdir $NEWLIB_PREFIX && mkdir $NEWLIB_PREFIX &&
cd $NEWLIB_BUILD && cd $NEWLIB_BUILD &&
$NEWLIB_SRC/configure --prefix=$NEWLIB_PREFIX --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-jehanne && $NEWLIB_SRC/configure --prefix=$NEWLIB_PREFIX --target=x86_64-jehanne &&
make all && make install && make all && make install &&
rm -fr $JEHANNE/sys/posix/newlib && rm -fr $JEHANNE/sys/posix/newlib &&
rm -fr $JEHANNE/arch/amd64/lib/newlib && rm -fr $JEHANNE/arch/amd64/lib/newlib &&