build: Provide clang-14 for Debian12
checkstyle.sh assumes clang-format-11 but allows it to be overridden.
Debian12 ships with a minimal version of clang-14, so set the correct
version for checkstyle.
Before:
$ make checkstyle
extras/scripts/checkstyle.sh: line 41: --version: command not found
make: *** [Makefile:720: checkstyle] Error 127
After:
$ make checkstyle
Debian clang-format version 14.0.6
*******************************************************************
* CHECKSTYLE SUCCESSFULLY COMPLETED
*******************************************************************
Type: make
Fixes: 712fc03089
Change-Id: I0c58456477011397115810dab825865b5850d10d
Signed-off-by: pim@ipng.nl
This commit is contained in:

committed by
Damjan Marion

parent
276cd73b75
commit
4a515d35a8
2
Makefile
2
Makefile
@ -109,6 +109,8 @@ else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-11)
|
||||
else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-12)
|
||||
DEB_DEPENDS += virtualenv
|
||||
DEB_DEPENDS += clang-14 clang-format-14
|
||||
# for extras/scripts/checkstyle.sh
|
||||
export CLANG_FORMAT_VER=14
|
||||
LIBFFI=libffi8
|
||||
else
|
||||
DEB_DEPENDS += clang-11 clang-format-11
|
||||
|
Reference in New Issue
Block a user