2019-10-08 08:55:31 +00:00
|
|
|
ifeq ($(OSTYPE),darwin)
|
|
|
|
ARCH=$(shell uname -m)
|
|
|
|
|
|
|
|
XCODE_VERSION=$(shell xcodebuild -version|grep Xcode|grep -o "[\.0-9]\+")
|
|
|
|
XCODE_VERSION_MAJOR=$(word 1, $(subst ., ,$(XCODE_VERSION)))
|
2020-08-14 05:17:32 +00:00
|
|
|
|
2021-12-17 10:21:52 +00:00
|
|
|
ifneq (,$(findstring ios-sdk,$(COMPILER)))
|
2020-08-14 05:17:32 +00:00
|
|
|
|
|
|
|
IOS_VERSION="9.0"
|
|
|
|
IOS_SDK_VERSION="9.0"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2020-11-01 00:40:26 +00:00
|
|
|
ifeq ($(shell test $(XCODE_VERSION_MAJOR) -gt 10;echo $$?),0)
|
2020-08-14 05:17:32 +00:00
|
|
|
MACOS_VERSION="10.5"
|
|
|
|
MACOS_SDK_VERSION="10.5"
|
2019-10-08 08:55:31 +00:00
|
|
|
PARTIALLD+=-arch ${ARCH} -platform_version macos $(MACOS_VERSION) $(MACOS_SDK_VERSION)
|
|
|
|
endif
|
2020-08-14 05:17:32 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2019-10-08 08:55:31 +00:00
|
|
|
endif
|