1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:49:47 +01:00

pkg/fff: disable LLVM in CI, error message on old clang

pkg/fff compiles fine with clang 16.0.0 and higher, but the CI currently
uses version 14.x.y which is incompatible. This disables LLVM in the CI
builds and prints a friendly error message when `TOOLCHAIN=llvm` is
used and clang is older than 16.0.0.
This commit is contained in:
Marian Buschsieweke 2023-05-21 10:25:02 +02:00 committed by Marian Buschsieweke
parent dc00024f98
commit 927d2cd67f
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -6,3 +6,14 @@ PSEUDOMODULES += fff
# Tests don't need pedantic. Pedantic throws errors in variadic macros when compiling for C++
CXXEXFLAGS += -Wno-pedantic
ifeq (1,$(RIOT_CI_BUILD))
# TODO: remove this when the build containers clang is updated to version 16
TOOLCHAINS_BLACKLIST += llvm
else
ifeq (llvm,$(TOOLCHAIN))
ifneq (1,$(call version_is_greater_or_equal,$(LLVM_VERSION),16))
$(error package fff requires clang 16.0.0 or newer. Use GCC or update clang.)
endif
endif
endif