qmake: Improve error message when detecting macOS platform SDK upgrade
Pick-to: 6.1 6.0 5.15 Task-number: QTBUG-85546 Change-Id: I2bce9d22ad826fa73fa4dbfd03c9b1d404c57859 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>bb10
parent
b38b9e2bb0
commit
fca543bcde
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue