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:
parent
777351e068
commit
358636045e
@ -5,5 +5,11 @@ PKG_LICENSE=BSD-2-Clause
|
|||||||
|
|
||||||
include $(RIOTBASE)/pkg/pkg.mk
|
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:
|
all:
|
||||||
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||||
|
@ -4,8 +4,5 @@ CFLAGS += -Wno-unused-parameter
|
|||||||
CFLAGS += -Wno-unused-function
|
CFLAGS += -Wno-unused-function
|
||||||
CFLAGS += -Wno-unused-variable
|
CFLAGS += -Wno-unused-variable
|
||||||
|
|
||||||
ifneq (,$(filter cortex-m0%,$(CPU_CORE)))
|
# llvm fails to allocate registers for inline assembly :/
|
||||||
# LLVM/clang can't handle the inline assembler instructions on M0 in this
|
TOOLCHAINS_BLACKLIST += llvm
|
||||||
# package
|
|
||||||
TOOLCHAINS_BLACKLIST += llvm
|
|
||||||
endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user