ref: bcb383e6eaae70e4e8bdb897d658f986a97cbdfe
parent: c4636c3f4e1043684089a2cbade3af085d55da77
parent: d75c539407217dc55d06c53a0cead8febdcba593
author: guangwei <[email protected]>
date: Mon Mar 20 12:41:32 EDT 2017
Merge pull request #2689 from mstorsjo/avoid-rerunning-xcrun Make SDKROOT immediately assigned
--- a/build/platform-ios.mk
+++ b/build/platform-ios.mk
@@ -9,7 +9,7 @@
endif
SDK_MIN = 5.1
-SDKROOT = $(shell xcrun --sdk $(shell echo $(SDKTYPE) | tr A-Z a-z) --show-sdk-path)
+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)