Skip to content

Commit

Permalink
travis: Do fbc debug build for better testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl committed Oct 24, 2017
1 parent 90dbcb4 commit f10204c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contrib/travis/build-and-test.sh
Expand Up @@ -4,13 +4,17 @@ set -ex
source "$(dirname "$0")/bootstrap-settings.sh"

# Build fbc
rm -f config.mk
if [ "$1" = "32" ]; then
echo "CC = gcc -m32" > config.mk
echo "TARGET_ARCH = x86" >> config.mk
echo "CC := gcc -m32" >> config.mk
echo "TARGET_ARCH := x86" >> config.mk
fi
echo "FBFLAGS := -g -exx -maxerr 1" >> config.mk
echo "CFLAGS := -g -O2 -Werror -Wfatal-errors -DDEBUG" >> config.mk
make -j$(nproc) FBC="$bootstrap_package/bin/fbc -i $bootstrap_package/inc" </dev/null
mv bin/fbc bin/fbc1
make -j$(nproc) clean-compiler
# Rebuild fbc with itself
make -j$(nproc) compiler FBC='bin/fbc1 -i inc' </dev/null
rm bin/fbc1

Expand Down

0 comments on commit f10204c

Please sign in to comment.