aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-09-10 03:56:22 +0200
committerChristopher Li <sparse@chrisli.org>2017-09-12 11:43:31 -0400
commitf1e4ba13d1499407a72349b50052ae818c8d8553 (patch)
tree6fc1efb354813e62692c714788a273be9bf8804b /Makefile
parent2093505d7b706bf5e0cc59b5d5fdf49891c24d48 (diff)
downloadsparse-dev-f1e4ba13d1499407a72349b50052ae818c8d8553.tar.gz
build: disable sparse-llvm on non-x86
sparse-llvm doesn't have support for targets other than x86 or x86-64. Disable sparse-llvm on other archs as it create problems during build, selftest, ... Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 84bb133d..a4653aa1 100644
--- a/Makefile
+++ b/Makefile
@@ -90,6 +90,7 @@ $(warning Your system does not have gtk3/gtk2, disabling test-inspect)
endif
ifeq ($(HAVE_LLVM),yes)
+ifeq ($(shell uname -m | grep -q '\(i386\|x86\)' && echo ok),ok)
LLVM_VERSION:=$(shell $(LLVM_CONFIG) --version)
ifeq ($(shell expr "$(LLVM_VERSION)" : '[3-9]\.'),2)
LLVM_PROGS := sparse-llvm
@@ -106,6 +107,9 @@ else
$(warning LLVM 3.0 or later required. Your system has version $(LLVM_VERSION) installed.)
endif
else
+$(warning sparse-llvm disabled on $(shell uname -m))
+endif
+else
$(warning Your system does not have llvm, disabling sparse-llvm)
endif