diff --git a/makefile b/makefile index 5543c0e110..cbaa4ec42a 100755 --- a/makefile +++ b/makefile @@ -743,7 +743,8 @@ ifeq ($(kernel),darwin) sdk-dir = $(platform-dir)/Developer/SDKs ios-version := $(shell \ - if test -d $(sdk-dir)/$(target)8.0.sdk; then echo 8.0; \ + if test -d $(sdk-dir)/$(target)8.1.sdk; then echo 8.1; \ + elif test -d $(sdk-dir)/$(target)8.0.sdk; then echo 8.0; \ elif test -d $(sdk-dir)/$(target)7.1.sdk; then echo 7.1; \ elif test -d $(sdk-dir)/$(target)7.0.sdk; then echo 7.0; \ elif test -d $(sdk-dir)/$(target)6.1.sdk; then echo 6.1; \