mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:14:12 +08:00
mdbx: CI makefile target for fast checking.
Change-Id: Ie00a3d8d6a44a19a4afe0c369a661a2d3ad60127
This commit is contained in:
parent
f5c61018ba
commit
0688461bc4
10
Makefile
10
Makefile
@ -197,3 +197,13 @@ $(eval $(call bench-rule,debug,10))
|
||||
bench: bench-lmdb.txt bench-mdbx.txt
|
||||
|
||||
endif
|
||||
|
||||
ci-rule = @( CC=$$(which $1); if [ -n "$$CC" ]; then \
|
||||
CC=$$(readlink -f $$CC); echo -n "probe by $2 ($$CC): " && \
|
||||
$(MAKE) clean >$1.log 2>&1 && $(MAKE) all check 1>$1.log 2>&1 && echo "Ok" || echo " Failed, see $1.log"; \
|
||||
else echo "no $2 ($1) for probe"; fi; )
|
||||
ci:
|
||||
$(call ci-rule,cc,default C compiler)
|
||||
$(call ci-rule,gcc,GCC)
|
||||
$(call ci-rule,clang,clang LLVM)
|
||||
$(call ci-rule,icc,Intel C)
|
||||
|
Loading…
x
Reference in New Issue
Block a user