aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 24d5571..186d36a 100644
--- a/Makefile
+++ b/Makefile
@@ -84,9 +84,15 @@ ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
endif
+ifeq ($(platform),ios-arm64)
+ CC = cc -arch arm64 -isysroot $(IOSSDK)
+ CXX = c++ -arch arm64 -isysroot $(IOSSDK)
+else
CC = cc -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
-ifeq ($(platform),ios9)
+endif
+
+ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
SHARED += -miphoneos-version-min=8.0
CC += -miphoneos-version-min=8.0
CXX += -miphoneos-version-min=8.0