summaryrefslogtreecommitdiffstats
path: root/mkspecs/features
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-11-25 13:35:45 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2018-11-27 07:53:42 +0000
commit2aef845c03a9544d51cdf67f712ecd1a7e62110f (patch)
treef1569b5550e7570f314221b2662ab31db5d5308b /mkspecs/features
parent8e8c11f4f3d5ccb8b1a9042d363e4d1639797df3 (diff)
macOS: Don't link to debug versions of frameworks unless requested
The failure mode of this behavior is worse than the surprises that the non-explicit library dependency chain has, so it should be opt-in. This reverts back to the behavior in Qt 5.11, but lets our tests opt in to the feature. Fixes: QTBUG-71724 Change-Id: Iede11f02d978b637324ddf71d29e7c99fe3ee99f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'mkspecs/features')
-rw-r--r--mkspecs/features/qt.prf2
-rw-r--r--mkspecs/features/testcase.prf3
2 files changed, 4 insertions, 1 deletions
diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
index 90e318e2a4..d16b3cf1be 100644
--- a/mkspecs/features/qt.prf
+++ b/mkspecs/features/qt.prf
@@ -231,7 +231,7 @@ for(ever) {
!isEmpty(MODULE_MODULE) {
contains(MODULE_CONFIG, lib_bundle) {
framework = $$MODULE_MODULE
- qtConfig(debug_and_release):!macx-xcode {
+ qtConfig(debug_and_release):qt_link_suffixed_framework:!macx-xcode {
platform_target_suffix = $$qtPlatformTargetSuffix()
!isEmpty(platform_target_suffix): \
# The -framework linker argument supports a name[,suffix] version,
diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf
index 79883b7f09..bfc28c6861 100644
--- a/mkspecs/features/testcase.prf
+++ b/mkspecs/features/testcase.prf
@@ -21,6 +21,9 @@ testcase_lowdpi {
}
}
+# Make sure we explicitly link to the debug version of the Qt libraries if needed
+macos: CONFIG += qt_link_suffixed_framework
+
benchmark: type = benchmark
else: type = check