Merge "qmake: Improve error message when detecting macOS platform SDK upgrade"

This commit is contained in:
Tor Arne Vestbø 2021-03-18 16:40:33 +01:00 committed by Qt CI Bot
commit e415939abf
2 changed files with 11 additions and 4 deletions

View File

@ -7,7 +7,12 @@ QMAKE_MAC_SDK_VERSION = $$xcodeSDKInfo(SDKVersion)
contains(TEMPLATE, .*app) {
!macx-xcode:if(isEmpty(BUILDS)|build_pass) {
# Detect changes to the platform SDK
QMAKE_EXTRA_VARIABLES += QMAKE_MAC_SDK QMAKE_MAC_SDK_VERSION QMAKE_XCODE_DEVELOPER_PATH
QMAKE_EXTRA_VARIABLES += \
QMAKE_MAC_SDK \
QMAKE_MAC_SDK_VERSION \
QMAKE_XCODE_DEVELOPER_PATH \
_QMAKE_STASH_ \
QMAKE_EXTRA_INCLUDES += $$shell_quote($$PWD/sdk.mk)
}

View File

@ -13,12 +13,14 @@ ifeq ($(QT_MAC_SDK_NO_VERSION_CHECK),)
else ifneq ($(findstring SDK "$(EXPORT_QMAKE_MAC_SDK)" cannot be located,$(CURRENT_MAC_SDK_VERSION)),)
$(info The developer dir $(EXPORT_QMAKE_XCODE_DEVELOPER_PATH) no longer contains the $(EXPORT_QMAKE_MAC_SDK_VERSION) platform SDK.)
else ifneq ($(CURRENT_MAC_SDK_VERSION),)
$(info The platform SDK has been changed from version $(EXPORT_QMAKE_MAC_SDK_VERSION) to version $(CURRENT_MAC_SDK_VERSION).)
$(info The $(EXPORT_QMAKE_MAC_SDK) platform SDK has been changed from version $(EXPORT_QMAKE_MAC_SDK_VERSION) to version $(CURRENT_MAC_SDK_VERSION).)
else
$(info Unknown error resolving current platform SDK version.)
endif
$(info This requires a fresh build. Please wipe the build directory completely,)
$(info including any .qmake.stash and .qmake.cache files generated by qmake.)
$(info This requires a fresh build of your project. Please wipe the build directory)
ifneq ($(EXPORT__QMAKE_STASH_),)
$(info including the qmake cache in $(EXPORT__QMAKE_STASH_))
endif
$(error ^)
endif
endif