Fix iOS build (#107)

This commit is contained in:
Eric Warmenhoven 2024-10-06 17:35:22 -04:00 committed by GitHub
parent 683a37f25e
commit 648bf37e75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,7 +105,7 @@ else ifneq (,$(findstring ios,$(platform)))
fpic := -fPIC fpic := -fPIC
SHARED := -dynamiclib SHARED := -dynamiclib
MINVERSION := MINVERSION :=
CFLAGS += -Wno-error=implicit-function-declaration -DHAVE_POSIX_MEMALIGN -DIOS -marm CFLAGS += -Wno-error=implicit-function-declaration -DHAVE_POSIX_MEMALIGN -DIOS
ifeq ($(IOSSDK),) ifeq ($(IOSSDK),)
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path) IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
@ -116,9 +116,9 @@ ifeq ($(platform),$(filter $(platform),ios-arm64))
CC_AS = cc -arch arm64 -isysroot $(IOSSDK) CC_AS = cc -arch arm64 -isysroot $(IOSSDK)
CXX = c++ -arch arm64 -isysroot $(IOSSDK) CXX = c++ -arch arm64 -isysroot $(IOSSDK)
else else
CC = cc -arch armv7 -isysroot $(IOSSDK) CC = cc -marm -arch armv7 -isysroot $(IOSSDK)
CC_AS = cc -arch armv7 -isysroot $(IOSSDK) CC_AS = cc -marm -arch armv7 -isysroot $(IOSSDK)
CXX = c++ -arch armv7 -isysroot $(IOSSDK) CXX = c++ -marm -arch armv7 -isysroot $(IOSSDK)
endif endif
CC_AS = perl ./tools/gas-preprocessor.pl $(CC) CC_AS = perl ./tools/gas-preprocessor.pl $(CC)