1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/micro-ecc: blacklist LLVM

LLVM was already blacklisted for some specific Cortex-M targets due
to register allocation failing. The issue now has spread. Rather than
starting a whack-a-mole game, let's disable LLVM altogether for that
package.
This commit is contained in:
Marian Buschsieweke 2023-05-20 22:45:37 +02:00 committed by Marian Buschsieweke
parent 777351e068
commit 358636045e
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
2 changed files with 8 additions and 5 deletions

View File

@ -5,5 +5,11 @@ PKG_LICENSE=BSD-2-Clause
include $(RIOTBASE)/pkg/pkg.mk
# With LLVM register allocation fails. We can tell LLVM to spend more time
# on trying to allocate registers using the following snippet:
ifeq (llvm,$(TOOLCHAIN))
CFLAGS += -mllvm -exhaustive-register-search
endif
all:
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base

View File

@ -4,8 +4,5 @@ CFLAGS += -Wno-unused-parameter
CFLAGS += -Wno-unused-function
CFLAGS += -Wno-unused-variable
ifneq (,$(filter cortex-m0%,$(CPU_CORE)))
# LLVM/clang can't handle the inline assembler instructions on M0 in this
# package
TOOLCHAINS_BLACKLIST += llvm
endif
# llvm fails to allocate registers for inline assembly :/
TOOLCHAINS_BLACKLIST += llvm