mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 06:09:18 +02:00
build fixes from bakul
This commit is contained in:
parent
366c88bce1
commit
7a04cf809d
2 changed files with 13 additions and 4 deletions
10
Makefile
10
Makefile
|
@ -31,6 +31,9 @@ ifndef PLATFORM
|
|||
ifeq ($(shell uname),Darwin)
|
||||
PLATFORM=macosx
|
||||
else
|
||||
ifeq ($(shell uname),FreeBSD)
|
||||
PLATFORM=FreeBSD
|
||||
else
|
||||
ifeq ($(shell uname -o),Msys)
|
||||
PLATFORM=mingw
|
||||
SOLIBDIR = $(BINDIR)
|
||||
|
@ -50,6 +53,7 @@ endif
|
|||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM),macosx)
|
||||
SO = .dylib
|
||||
|
@ -79,6 +83,10 @@ SO = .so
|
|||
EXE =
|
||||
CLIBFLAGS = -fPIC -shared
|
||||
STATICFLAGS = -static -DSEXP_USE_DL=0
|
||||
ifeq ($(PLATFORM),FreeBSD)
|
||||
LIBDL=
|
||||
RLDFLAGS=-Wl,-R$(DESTDIR)$(LIBDIR)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
@ -207,7 +215,7 @@ test-basic: chibi-scheme$(EXE)
|
|||
done
|
||||
|
||||
test-build:
|
||||
./tests/build/build-tests.sh
|
||||
MAKE=$(MAKE) ./tests/build/build-tests.sh
|
||||
|
||||
test-threads: chibi-scheme$(EXE) lib/srfi/18/threads$(SO) lib/srfi/39/param$(SO) lib/srfi/98/env$(SO) lib/chibi/ast$(SO) lib/chibi/time$(SO)
|
||||
$(CHIBI) tests/thread-tests.scm
|
||||
|
|
|
@ -11,12 +11,13 @@
|
|||
|
||||
BUILDDIR=tests/build
|
||||
FAILURES=0
|
||||
MAKE=${MAKE:-make}
|
||||
i=0
|
||||
|
||||
for opts in `cat ${BUILDDIR}/build-opts.txt`; do
|
||||
make cleaner 2>&1 >/dev/null
|
||||
if make $opts chibi-scheme 2>&1 >${BUILDDIR}/build${i}-make.out; then
|
||||
if make test 2>&1 | tee ${BUILDDIR}/build${i}-test.out | grep -q -E 'FAIL|ERROR'; then
|
||||
$MAKE cleaner 2>&1 >/dev/null
|
||||
if $MAKE $opts chibi-scheme 2>&1 >${BUILDDIR}/build${i}-make.out; then
|
||||
if $MAKE test 2>&1 | tee ${BUILDDIR}/build${i}-test.out | grep -q -E 'FAIL|ERROR'; then
|
||||
echo "[FAIL] ${i}: tests failed with $opts"
|
||||
FAILURES=$((FAILURES + 1))
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue