summaryrefslogtreecommitdiffstats
path: root/configure.json
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-12-04 11:34:09 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-12-19 11:50:12 +0000
commit7951d1cdfaab6104535f25f5f47616ba71192344 (patch)
treea5f708e87f1722243cb292d310bda0e7fbe17ba6 /configure.json
parente2c10e99dba1d3e0cf047a103518722b2a0eab58 (diff)
Generate gdb indexing for faster debugging on Linux
If the linker supports it, add the gdb index to the debug symbols, which makes loading gdb on Qt libraries much faster. Change-Id: I2ed201c22913b97ac2efaefb5e31636e795ae102 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'configure.json')
-rw-r--r--configure.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.json b/configure.json
index 6a37695d02..50d426594a 100644
--- a/configure.json
+++ b/configure.json
@@ -307,6 +307,11 @@
"type": "linkerSupportsFlag",
"flag": "--enable-new-dtags"
},
+ "gdb_index": {
+ "label": "gdb index support",
+ "type": "linkerSupportsFlag",
+ "flag": "--gdb-index"
+ },
"reduce_exports": {
"label": "symbol visibility support",
"type": "compile",
@@ -813,6 +818,12 @@
"condition": "config.linux && tests.enable_new_dtags",
"output": [ "privateConfig" ]
},
+ "enable_gdb_index": {
+ "label": "Generating GDB index",
+ "autoDetect": "features.developer-build",
+ "condition": "config.gcc && !config.clang && (features.debug || features.force_debug_info || features.debug_and_release) && tests.gdb_index",
+ "output": [ "privateConfig" ]
+ },
"reduce_exports": {
"label": "Reduce amount of exported symbols",
"condition": "!config.win32 && tests.reduce_exports",
@@ -1265,6 +1276,11 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5
"args": "enable_new_dtags",
"condition": "config.linux"
},
+ {
+ "type": "feature",
+ "args": "enable_gdb_index",
+ "condition": "config.gcc && !config.clang && (features.debug || features.force_debug_info || features.debug_and_release)"
+ },
"precompile_header",
"ltcg",
{