Unverified Commit cb5cf6d6 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #23 from yoshisuga/ios-fix

iOS: Support building for ios-arm64
parents 74b3a6dc 986fb168
...@@ -160,17 +160,24 @@ else ifneq (,$(findstring ios,$(platform))) ...@@ -160,17 +160,24 @@ else ifneq (,$(findstring ios,$(platform)))
PLATCFLAGS += -DHAVE_POSIX_MEMALIGN PLATCFLAGS += -DHAVE_POSIX_MEMALIGN
PLATCFLAGS += -DIOS -marm PLATCFLAGS += -DIOS -marm
CPUFLAGS += -D__arm__ -D__NEON_OPT CPUFLAGS += -D__arm__ -D__NEON_OPT
CPUFLAGS += -marm -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp
LDFLAGS += -dynamiclib LDFLAGS += -dynamiclib
HAVE_NEON=1 HAVE_NEON=1
fpic = -fPIC fpic = -fPIC
GL_LIB := -framework OpenGLES GL_LIB := -framework OpenGLES
CC = clang -arch armv7 -isysroot $(IOSSDK)
CC_AS = perl ./tools/gas-preprocessor.pl $(CC) CC_AS = perl ./tools/gas-preprocessor.pl $(CC)
CXX = clang++ -arch armv7 -isysroot $(IOSSDK) ifeq ($(platform),ios-arm64)
ifeq ($(platform),ios9) CC = clang -arch arm64 -isysroot $(IOSSDK)
CXX = clang++ -arch arm64 -isysroot $(IOSSDK)
CPUFLAGS += -marm
else
CC = clang -arch armv7 -isysroot $(IOSSDK)
CXX = clang++ -arch armv7 -isysroot $(IOSSDK)
CPUFLAGS += -marm -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp
endif
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
CC += -miphoneos-version-min=8.0 CC += -miphoneos-version-min=8.0
CC_AS += -miphoneos-version-min=8.0 CC_AS += -miphoneos-version-min=8.0
CXX += -miphoneos-version-min=8.0 CXX += -miphoneos-version-min=8.0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment