aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-02-28 20:41:51 +0100
committerjohannst <johannes.stoelp@gmail.com>2021-02-28 20:41:51 +0100
commit9b251328b1861b8d3695d189e7626f1abc9fac60 (patch)
tree7792590c02e44d53d5df1529a7b92879b4b61f1a /lib
parente699ff88fd42dd144f6a0b4e9c3311c852b0fb71 (diff)
downloadmatcha-threads-9b251328b1861b8d3695d189e7626f1abc9fac60.tar.gz
matcha-threads-9b251328b1861b8d3695d189e7626f1abc9fac60.zip
lib/Makefile: error on unsupported ARCH
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index c85d450..aedd1d4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -2,10 +2,14 @@
ARCH ?= x86_64
-ifeq ($(ARCH),arm64)
+ifeq ($(ARCH),x86_64)
+PREFIX :=
+else ifeq ($(ARCH),arm64)
PREFIX := aarch64-linux-gnu-
else ifeq ($(ARCH),arm)
PREFIX := arm-linux-gnueabi-
+else
+$(error Unsupported architecture ARCH=$(ARCH))
endif
AS := $(PREFIX)gcc