diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-08-21 09:22:23 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-08-23 11:05:01 +0200 |
commit | 721812c5d2fe3a62d1321b70cac9609d8d8dd793 (patch) | |
tree | 5b9b424eadf75c1135a5ca15c4173f64c4933dce /configure.cmake | |
parent | 4306fc019ad88b124cd1af0998a3bcc60856fc74 (diff) |
CMake: Implement configure -gdb-index
Change-Id: Iea0fb99297751b1baf830a416ea5041d0b9a3b63
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index a45c8431d2..a824ce467d 100644 --- a/configure.cmake +++ b/configure.cmake @@ -622,6 +622,12 @@ qt_feature("ltcg" CONDITION CMAKE_INTERPROCEDURAL_OPTIMIZATION ) qt_feature_config("ltcg" QMAKE_PRIVATE_CONFIG) +qt_feature("enable_gdb_index" + LABEL "Generating GDB index" + AUTODETECT QT_FEATURE_developer_build + CONDITION GCC AND NOT CLANG AND ( QT_FEATURE_debug OR QT_FEATURE_force_debug_info OR QT_FEATURE_debug_and_release ) AND TEST_gdb_index +) +qt_feature_config("enable_gdb_index" QMAKE_PRIVATE_CONFIG) qt_feature("reduce_exports" PRIVATE LABEL "Reduce amount of exported symbols" CONDITION NOT WIN32 AND CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY |