summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-08-20 10:19:32 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-08-20 17:07:53 +0200
commit729d102b1c5273087c54d1584c80f1a1e6eef86c (patch)
tree1d5ab5f1d52d29f148a1615f2316f3d953089d5c /configure.cmake
parent2f1a55c0b13ea02619f0d209a2b710fb7cbe8a1a (diff)
downloadqtbase-729d102b1c5273087c54d1584c80f1a1e6eef86c.tar.gz
CMake: Implement configure -optimize-debug
Task-number: QTBUG-85373 Change-Id: I3aba1fcf96e36544dd75a5e6adc5f770a9a45726 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index d870e3a759..283bb94ed4 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -409,6 +409,12 @@ qt_feature("use_lld_linker"
DISABLE INPUT_linker STREQUAL 'bfd' OR INPUT_linker STREQUAL 'gold'
)
qt_feature_config("use_lld_linker" QMAKE_PRIVATE_CONFIG)
+qt_feature("optimize_debug"
+ LABEL "Optimize debug build"
+ AUTODETECT NOT QT_FEATURE_developer_build
+ CONDITION NOT MSVC AND NOT CLANG AND ( QT_FEATURE_debug OR QT_FEATURE_debug_and_release ) AND TEST_optimize_debug
+)
+qt_feature_config("optimize_debug" QMAKE_PRIVATE_CONFIG)
qt_feature("pkg-config" PUBLIC
LABEL "Using pkg-config"
AUTODETECT NOT APPLE AND NOT WIN32