diff options
author | Luc Van Oostenryck <lucvoo@kernel.org> | 2024-01-20 17:16:35 +0100 |
---|---|---|
committer | Luc Van Oostenryck <lucvoo@kernel.org> | 2024-01-29 18:13:43 +0100 |
commit | 2925599897b1459fa46ed95c5e4cceebc91e824a (patch) | |
tree | 7020d1722fc1554b9118356bbc8f8b255a96f881 | |
parent | bf6ea1c69791eaf0ad58587f578d126b0484b688 (diff) | |
download | sparse-2925599897b1459fa46ed95c5e4cceebc91e824a.tar.gz |
llvm: allow arm64
Currently, all architectures but the i386/x86 ones are excluded
from the LLVM backend, mainly because the lack of testing.
Since I can test it now, allow arm64/aarch64 too.
Note: this patch is somehow incomplete because the layout is not set
but it's not clear what exactly the layout is needed for and at
least it allows to run the testsuite on this architecture.
Signed-off-by: Luc Van Oostenryck <lucvoo@kernel.org>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -200,7 +200,7 @@ arch := $(shell uname -m) ifeq (${MULTIARCH_TRIPLET},x86_64-linux-gnux32) arch := x32 endif -ifneq ($(filter ${arch},i386 i486 i586 i686 x86_64 amd64),) +ifneq ($(filter ${arch},i386 i486 i586 i686 x86_64 amd64 aarch64 arm64),) LLVM_VERSION:=$(shell $(LLVM_CONFIG) --version) LLVM_VERSION_MAJOR:=$(firstword $(subst ., ,$(LLVM_VERSION))) ifeq ($(shell expr "$(LLVM_VERSION_MAJOR)" '>=' 3),1) |