mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx: allow CC=xyz for ci-target rules.
Change-Id: Ie5ae783ffde8293b1c6b5c1cfe90f98d829d91ae
This commit is contained in:
parent
ac09708bfe
commit
9407621eba
12
Makefile
12
Makefile
@ -198,13 +198,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 \
|
||||||
CC=$$(readlink -f $$CC); echo -n "probe by $2 ($$CC): " && \
|
CC=$$(readlink -f $$CC); echo -n "probe by $2 ($$CC): " && \
|
||||||
$(MAKE) clean >$1.log 2>$1.err && $(MAKE) all check 1>$1.log 2>$1.err && echo "OK" \
|
$(MAKE) clean >$1.log 2>$1.err && $(MAKE) 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:
|
||||||
$(call ci-rule,cc,default C compiler)
|
@if [ "$(CC)" != "gcc" ]; then \
|
||||||
$(call ci-rule,gcc,GCC)
|
$(call ci-rule,$(CC),default C compiler); \
|
||||||
$(call ci-rule,clang,clang LLVM)
|
fi
|
||||||
$(call ci-rule,icc,Intel C)
|
@$(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