diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-02-28 20:41:51 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-02-28 20:41:51 +0100 |
commit | 9b251328b1861b8d3695d189e7626f1abc9fac60 (patch) | |
tree | 7792590c02e44d53d5df1529a7b92879b4b61f1a | |
parent | e699ff88fd42dd144f6a0b4e9c3311c852b0fb71 (diff) | |
download | matcha-threads-9b251328b1861b8d3695d189e7626f1abc9fac60.tar.gz matcha-threads-9b251328b1861b8d3695d189e7626f1abc9fac60.zip |
lib/Makefile: error on unsupported ARCH
-rw-r--r-- | lib/Makefile | 6 |
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 |