mdbx-make: don't use clang-format < 10 to avoid misformating.

Change-Id: I58d3b5071011a106b1801a1bd966f5c2d8354fcb
This commit is contained in:
Leonid Yuriev
2020-05-05 18:52:32 +03:00
parent bc9c5bad5d
commit c99f258a47
2 changed files with 18 additions and 12 deletions

View File

@@ -128,7 +128,7 @@ CXX ?= g++
CXXSTD ?= $(shell $(CXX) -std=c++27 -c test/test.cc -o /dev/null 2>/dev/null && echo -std=c++17 || echo -std=c++11)
CXXFLAGS := $(CXXSTD) $(filter-out -std=gnu11,$(CFLAGS))
TAR ?= $(shell which gnu-tar || echo tar)
CLANG_FORMAT ?= $(shell (which clang-format || which clang-format-8 || which clang-format-9 || which clang-format-10 || which clang-format-11 || which clang-format-12) 2>/dev/null)
CLANG_FORMAT ?= $(shell (which clang-format-12 || which clang-format-11 || which clang-format-10 || which clang-format) 2>/dev/null)
reformat:
@if [ -n "$(CLANG_FORMAT)" ]; then \