Make sure to compile example to trigger edge-cases in compiling
This commit is contained in:
parent
8999750f12
commit
26999505d6
@ -6,11 +6,11 @@ compiler:
|
|||||||
env:
|
env:
|
||||||
- CFLAGS="-Werror"
|
- CFLAGS="-Werror"
|
||||||
- PRE="valgrind --track-origins=yes --leak-check=full"
|
- PRE="valgrind --track-origins=yes --leak-check=full"
|
||||||
- TARGET="32bit" CFLAGS="-Werror"
|
- TARGET="32bit" TARGET_VARS="32bit-vars" CFLAGS="-Werror"
|
||||||
- TARGET="32bit" PRE="valgrind --track-origins=yes --leak-check=full"
|
- TARGET="32bit" TARGET_VARS="32bit-vars" PRE="valgrind --track-origins=yes --leak-check=full"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install libc6-dbg libc6-dev libc6-i686:i386 libc6-dev-i386 libc6-dbg:i386 valgrind -y
|
- sudo apt-get install libc6-dbg libc6-dev libc6-i686:i386 libc6-dev-i386 libc6-dbg:i386 valgrind -y
|
||||||
|
|
||||||
script: make $TARGET CFLAGS="$CFLAGS" && make check PRE="$PRE"
|
script: make $TARGET CFLAGS="$CFLAGS" && make check PRE="$PRE" && make $TARGET_VARS hiredis-example
|
||||||
|
4
Makefile
4
Makefile
@ -176,6 +176,10 @@ install: $(DYLIBNAME) $(STLIBNAME) $(PKGCONFNAME)
|
|||||||
@echo ""
|
@echo ""
|
||||||
$(MAKE) CFLAGS="-m32" LDFLAGS="-m32"
|
$(MAKE) CFLAGS="-m32" LDFLAGS="-m32"
|
||||||
|
|
||||||
|
32bit-vars:
|
||||||
|
$(eval CFLAGS=-m32)
|
||||||
|
$(eval LDFLAGS=-m32)
|
||||||
|
|
||||||
gprof:
|
gprof:
|
||||||
$(MAKE) CFLAGS="-pg" LDFLAGS="-pg"
|
$(MAKE) CFLAGS="-pg" LDFLAGS="-pg"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user