mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:14:12 +08:00
mdbx: refine make ci
target.
Change-Id: I4b50ded5cf4b03b7a10951e7d7ae2e08fd05d81b
This commit is contained in:
parent
9c02fad4cd
commit
478b7f00d9
6
Makefile
6
Makefile
@ -199,13 +199,15 @@ bench: bench-lmdb.txt bench-mdbx.txt
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ci-rule = ( CC=$$(which $1); if [ -n "$$CC" ]; then \
|
ci-rule = ( CC=$$(which $1); if [ -n "$$CC" ]; then \
|
||||||
echo -n "probe by $2 ($$CC): " && \
|
echo -n "probe by $2 ($$(readlink -f $$(which $$CC))): " && \
|
||||||
$(MAKE) clean >$1.log 2>$1.err && \
|
$(MAKE) clean >$1.log 2>$1.err && \
|
||||||
$(MAKE) CC=$$(readlink -f $$CC) XCFLAGS="-UNDEBUG -DMDB_DEBUG=2" all check 1>$1.log 2>$1.err && echo "OK" \
|
$(MAKE) CC=$$(readlink -f $$CC) XCFLAGS="-UNDEBUG -DMDB_DEBUG=2" all check 1>$1.log 2>$1.err && echo "OK" \
|
||||||
|| ( echo "FAILED"; cat $1.err >&2; exit 1 ); \
|
|| ( echo "FAILED"; cat $1.err >&2; exit 1 ); \
|
||||||
else echo "no $2 ($1) for probe"; fi; )
|
else echo "no $2 ($1) for probe"; fi; )
|
||||||
ci:
|
ci:
|
||||||
@if [ "$(CC)" != "gcc" ]; then \
|
@if [ "$$(readlink -f $$(which $(CC)))" != "$$(readlink -f $$(which gcc || echo /bin/false))" -a \
|
||||||
|
"$$(readlink -f $$(which $(CC)))" != "$$(readlink -f $$(which clang || echo /bin/false))" -a \
|
||||||
|
"$$(readlink -f $$(which $(CC)))" != "$$(readlink -f $$(which icc || echo /bin/false))" ]; then \
|
||||||
$(call ci-rule,$(CC),default C compiler); \
|
$(call ci-rule,$(CC),default C compiler); \
|
||||||
fi
|
fi
|
||||||
@$(call ci-rule,gcc,GCC)
|
@$(call ci-rule,gcc,GCC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user