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 /cmake | |
parent | 4306fc019ad88b124cd1af0998a3bcc60856fc74 (diff) |
CMake: Implement configure -gdb-index
Change-Id: Iea0fb99297751b1baf830a416ea5041d0b9a3b63
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtInternalTargets.cmake | 4 | ||||
-rw-r--r-- | cmake/configure-cmake-mapping.md | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index e59e075d32..fb64b0fbab 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -221,6 +221,10 @@ elseif(QT_FEATURE_use_lld_linker) target_link_options(PlatformCommonInternal INTERFACE "-fuse-ld=lld") endif() +if(QT_FEATURE_enable_gdb_index) + target_link_options(PlatformCommonInternal INTERFACE "-Wl,--gdb-index") +endif() + function(qt_get_implicit_sse2_genex_condition out_var) set(is_shared_lib "$<STREQUAL:$<TARGET_PROPERTY:TYPE>,SHARED_LIBRARY>") set(is_static_lib "$<STREQUAL:$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>") diff --git a/cmake/configure-cmake-mapping.md b/cmake/configure-cmake-mapping.md index c113f4bceb..357c52a51b 100644 --- a/cmake/configure-cmake-mapping.md +++ b/cmake/configure-cmake-mapping.md @@ -32,7 +32,7 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349. | -optimized-tools | n/a | This affects only host tools. | | -force-debug-info | Use the RelWithDebInfo build config. | | | -separate-debug-info | -DFEATURE_separate_debug_info=ON | | -| -gdb-index | | | +| -gdb-index | -DFEATURE_enable_gdb_index=ON | | | -strip | | | | -gc-binaries | -DFEATURE_gc_binaries=ON | | | -force-asserts | | | |