mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
fixing test-build on static exe
This commit is contained in:
parent
abc3403e0a
commit
32580be0ff
1 changed files with 6 additions and 1 deletions
|
@ -18,6 +18,7 @@ i=0
|
||||||
for opts in $(cat ${BUILDDIR}/build-opts.txt); do
|
for opts in $(cat ${BUILDDIR}/build-opts.txt); do
|
||||||
# If compiling with static libs, we need to bootstrap to build
|
# If compiling with static libs, we need to bootstrap to build
|
||||||
# clibs.c.
|
# clibs.c.
|
||||||
|
TARGET="chibi-scheme"
|
||||||
if echo ${opts} | grep -q 'SEXP_USE_STATIC_LIBS=1'; then
|
if echo ${opts} | grep -q 'SEXP_USE_STATIC_LIBS=1'; then
|
||||||
staticopts=$(echo ${opts} | sed 's/-DSEXP_USE_STATIC_LIBS=1;*//')
|
staticopts=$(echo ${opts} | sed 's/-DSEXP_USE_STATIC_LIBS=1;*//')
|
||||||
staticopts=$(echo ${staticopts} | tr ';' ' ')
|
staticopts=$(echo ${staticopts} | tr ';' ' ')
|
||||||
|
@ -25,12 +26,16 @@ for opts in $(cat ${BUILDDIR}/build-opts.txt); do
|
||||||
rm -f clibs.c
|
rm -f clibs.c
|
||||||
$MAKE -j 8 "$vars" $staticopts 2>&1 >${BUILDDIR}/build${i}-bootstrap.out
|
$MAKE -j 8 "$vars" $staticopts 2>&1 >${BUILDDIR}/build${i}-bootstrap.out
|
||||||
$MAKE -j 8 "$vars" $staticopts clibs.c 2>&1 >${BUILDDIR}/build${i}-clibs.out
|
$MAKE -j 8 "$vars" $staticopts clibs.c 2>&1 >${BUILDDIR}/build${i}-clibs.out
|
||||||
|
TARGET="chibi-scheme-static"
|
||||||
fi
|
fi
|
||||||
# Try to build then run tests.
|
# Try to build then run tests.
|
||||||
opts=$(echo ${opts} | tr ';' ' ')
|
opts=$(echo ${opts} | tr ';' ' ')
|
||||||
$MAKE cleaner 2>&1 >/dev/null
|
$MAKE cleaner 2>&1 >/dev/null
|
||||||
sync
|
sync
|
||||||
if $MAKE -j 8 "$vars" $opts chibi-scheme 2>&1 >${BUILDDIR}/build${i}-make.out; then
|
if $MAKE -j 8 "$vars" $opts "$TARGET" 2>&1 >${BUILDDIR}/build${i}-make.out; then
|
||||||
|
if [ "chibi-scheme" != "$TARGET" ]; then
|
||||||
|
cp "$TARGET" chibi-scheme
|
||||||
|
fi
|
||||||
sync
|
sync
|
||||||
if $MAKE test-r5rs 2>&1 | tee ${BUILDDIR}/build${i}-test.out \
|
if $MAKE test-r5rs 2>&1 | tee ${BUILDDIR}/build${i}-test.out \
|
||||||
| grep -q -E 'FAIL|ERROR'; then
|
| grep -q -E 'FAIL|ERROR'; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue