From 79f3673d205617ac567f0566ebf8f450932d9976 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 31 Aug 2022 21:29:15 +0200 Subject: new arm64_apple target Should make qbe work on apple arm-based hardware. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 64878c7..674f850 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,14 @@ main.o: config.h config.h: @case `uname` in \ *Darwin*) \ - echo "#define Deftgt T_amd64_apple"; \ + case `uname -m` in \ + *arm64*) \ + echo "#define Deftgt T_arm64_apple";\ + ;; \ + *) \ + echo "#define Deftgt T_amd64_apple";\ + ;; \ + esac \ ;; \ *) \ case `uname -m` in \ -- cgit 1.4.1