From 0b73fbaa1a5c5146edab4aa6d6ba07ad11c75079 Mon Sep 17 00:00:00 2001 From: Yoshi Sugawara Date: Mon, 2 Oct 2017 15:57:25 -1000 Subject: support for iOS arm64 build --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d0d8b7d..1f6c380 100644 --- a/Makefile +++ b/Makefile @@ -126,9 +126,13 @@ else ifneq (,$(findstring ios,$(platform))) IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path) endif - CC = cc -arch armv7 -isysroot $(IOSSDK) + ifeq ($(platform),ios-arm64) + CC = cc -arch arm64 -isysroot $(IOSSDK) + else + CC = cc -arch armv7 -isysroot $(IOSSDK) + endif CFLAGS += -DIOS -DHAVE_POSIX_MEMALIGN -marm -ifeq ($(platform),ios9) +ifeq ($(platform),$(filter $(platform),ios9 ios-arm64)) CC += -miphoneos-version-min=8.0 CFLAGS += -miphoneos-version-min=8.0 else -- cgit v1.2.3