aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-19 13:10:11 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-02-24 10:19:04 +0100
commitb8ab21653014f716750fa962d826da9826830566 (patch)
tree6929753acb793340971f43cc4c45ab1f6e711051 /Makefile
parentb8f9557e0834c8dfe26d64c0bbab3e226b4e75b1 (diff)
downloadsparse-dev-b8ab21653014f716750fa962d826da9826830566.tar.gz
'amd64' is also ok for sparse-llvm
For sparse-llvm, the only layouts are for x86 architecture, either 32 or 64bit. So, it's not built for other archs. This is done by parsing the output of 'uname -m' but only 'i[3456]86' or 'x86' are accepted as pattern while 'amd64' is also used. Change the pattern to also accept 'amd64'. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8b3940e3..ddd3f2ab 100644
--- a/Makefile
+++ b/Makefile
@@ -142,7 +142,7 @@ endif
LLVM_CONFIG:=llvm-config
HAVE_LLVM:=$(shell $(LLVM_CONFIG) --version >/dev/null 2>&1 && echo 'yes')
ifeq ($(HAVE_LLVM),yes)
-ifeq ($(shell uname -m | grep -q '\(i[3456]86\|x86\)' && echo ok),ok)
+ifeq ($(shell uname -m | grep -q '\(i[3456]86\|x86\|amd64\)' && echo ok),ok)
LLVM_VERSION:=$(shell $(LLVM_CONFIG) --version)
ifeq ($(shell expr "$(LLVM_VERSION)" : '[3-9]\.'),2)
LLVM_PROGS := sparse-llvm