Fix iOS builds
This commit is contained in:
parent
36b607d2b4
commit
9d46b84dee
18
Makefile
18
Makefile
|
@ -129,17 +129,21 @@ else ifneq (,$(findstring ios,$(platform)))
|
||||||
|
|
||||||
ifeq ($(platform),ios-arm64)
|
ifeq ($(platform),ios-arm64)
|
||||||
CC = cc -arch arm64 -isysroot $(IOSSDK)
|
CC = cc -arch arm64 -isysroot $(IOSSDK)
|
||||||
|
CXX = c++ -arch arm64 -isysroot $(IOSSDK)
|
||||||
else
|
else
|
||||||
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
CC = cc -arch armv7 -isysroot $(IOSSDK)
|
||||||
|
CXX = c++ -arch armv7 -isysroot $(IOSSDK)
|
||||||
endif
|
endif
|
||||||
CFLAGS += -DIOS -DHAVE_POSIX_MEMALIGN -marm
|
CFLAGS += -DIOS -DHAVE_POSIX_MEMALIGN -marm
|
||||||
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
|
|
||||||
CC += -miphoneos-version-min=8.0
|
ifeq ($(platform),$(filter $(platform),ios9 ios-arm64))
|
||||||
CFLAGS += -miphoneos-version-min=8.0
|
MINVERSION = -miphoneos-version-min=8.0
|
||||||
else
|
else
|
||||||
CC += -miphoneos-version-min=5.0
|
MINVERSION = -miphoneos-version-min=5.0
|
||||||
CFLAGS += -miphoneos-version-min=5.0
|
endif
|
||||||
endif
|
SHARED += $(MINVERSION)
|
||||||
|
CC += $(MINVERSION)
|
||||||
|
CXX += $(MINVERSION)
|
||||||
|
|
||||||
# tvOS
|
# tvOS
|
||||||
else ifeq ($(platform), tvos-arm64)
|
else ifeq ($(platform), tvos-arm64)
|
||||||
|
|
Loading…
Reference in New Issue