ref: 284861b3bcb9f977cc5d47b9eaf0d77b73375d9a
parent: 7a9f15cb8a1371556242aa2de79d09ae42c57675
parent: ddda24047c978887fd1850c9a43dec69afe6c928
author: ruil2 <ruil2@cisco.com>
date: Wed Nov 2 05:28:35 EDT 2016
Merge pull request #2580 from mstorsjo/ios-sdk Simplify getting the iOS SDK path
--- a/build/platform-ios.mk
+++ b/build/platform-ios.mk
@@ -7,11 +7,9 @@
else
SDKTYPE = iPhoneOS
endif
-SDK = $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-version)
SDK_MIN = 5.1
-XCODE=$(shell xcode-select -p)
-SDKROOT = $(XCODE)/Platforms/$(SDKTYPE).platform/Developer/SDKs/$(SDKTYPE)$(SDK).sdk
+SDKROOT = $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-path)
CFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN) -DAPPLE_IOS -fembed-bitcode
LDFLAGS += -arch $(ARCH) -isysroot $(SDKROOT) -miphoneos-version-min=$(SDK_MIN)