mirror of
https://github.com/brain-hackers/cegcc-build.git
synced 2024-12-22 20:20:08 +09:00
build-mingw32ce.sh: set -e
Make every error fatal; remove the "||exit1" suffixes.
This commit is contained in:
parent
44a9fd14ff
commit
37f6f72905
@ -1,5 +1,7 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
BASE_DIRECTORY=`dirname $0`
|
BASE_DIRECTORY=`dirname $0`
|
||||||
BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; cd ..; pwd)`
|
BASE_DIRECTORY=`(cd ${BASE_DIRECTORY}; cd ..; pwd)`
|
||||||
ME=`basename $0`
|
ME=`basename $0`
|
||||||
@ -66,7 +68,7 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)' ||true`
|
||||||
|
|
||||||
case $ac_option in
|
case $ac_option in
|
||||||
|
|
||||||
@ -222,20 +224,20 @@ build_bootstrap_gcc()
|
|||||||
--disable-shared \
|
--disable-shared \
|
||||||
--disable-interwork \
|
--disable-interwork \
|
||||||
--without-newlib \
|
--without-newlib \
|
||||||
--enable-checking || exit 1
|
--enable-checking
|
||||||
|
|
||||||
case ${gcc_src} in
|
case ${gcc_src} in
|
||||||
gcc)
|
gcc)
|
||||||
make ${PARALLELISM} all-gcc || exit 1
|
make ${PARALLELISM} all-gcc
|
||||||
make install-gcc || exit 1
|
make install-gcc
|
||||||
;;
|
;;
|
||||||
gcc-*)
|
gcc-*)
|
||||||
make ${PARALLELISM} all-gcc || exit 1
|
make ${PARALLELISM} all-gcc
|
||||||
make configure-target-libgcc || exit 1
|
make configure-target-libgcc
|
||||||
make install-gcc || exit 1
|
make install-gcc
|
||||||
cd ${TARGET}/libgcc || exit 1
|
cd ${TARGET}/libgcc
|
||||||
make ${PARALLELLISM} libgcc.a || exit 1
|
make ${PARALLELLISM} libgcc.a
|
||||||
/usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.5.3 || exit 1
|
/usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.5.3
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -452,8 +454,7 @@ build_profile()
|
|||||||
--build=${BUILD} \
|
--build=${BUILD} \
|
||||||
--host=${TARGET} \
|
--host=${TARGET} \
|
||||||
--target=${TARGET} \
|
--target=${TARGET} \
|
||||||
--prefix=${PREFIX} \
|
--prefix=${PREFIX}
|
||||||
|| exit
|
|
||||||
|
|
||||||
make ${PARALLELISM}
|
make ${PARALLELISM}
|
||||||
make install
|
make install
|
||||||
|
Loading…
Reference in New Issue
Block a user