diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-08-31 11:43:24 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-08-31 12:25:19 +0000 |
commit | 3ed306772eb333fb4d9fa0b0a003c119e848ed58 (patch) | |
tree | 3f727ae307630214fc1efd1e2a32eabcd3e98f35 /mkspecs/features/mac/default_post.prf | |
parent | 5b6eb8e247d246a28bdc8ce533c52d7647a44a90 (diff) |
macOS: Detect changes to the platform SDK and ask the user to deal with it
Otherwise the SDK upgrade (or downgrade) may subtly and silently affect
the resulting binary, or if it results in build breaks, the user won't
know why.
We limit it to applications for now, as that's the point where it's
most important to catch the SDK upgrade, but technically we should
also do this for intermediate libraries. Doing it for everything
will likely incur a performance cost, so we skip that for now.
Change-Id: I8a0604aad8b1e9fba99848ab8ab031c07fd50dc4
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'mkspecs/features/mac/default_post.prf')
-rw-r--r-- | mkspecs/features/mac/default_post.prf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mkspecs/features/mac/default_post.prf b/mkspecs/features/mac/default_post.prf index c6eb7c5a2c..adc796f395 100644 --- a/mkspecs/features/mac/default_post.prf +++ b/mkspecs/features/mac/default_post.prf @@ -1,5 +1,11 @@ load(default_post) +# Detect changes to the platform SDK. Apps only for now +contains(TEMPLATE, .*app):!macx-xcode { + QMAKE_EXTRA_VARIABLES += QMAKE_MAC_SDK QMAKE_MAC_SDK_VERSION + QMAKE_EXTRA_INCLUDES += $$shell_quote($$PWD/sdk.mk) +} + !no_objective_c:CONFIG += objective_c qt { |