aboutsummaryrefslogtreecommitdiff
path: root/rules.mk
diff options
context:
space:
mode:
authorColin Snover2017-11-01 17:15:35 -0500
committerEugene Sandulenko2018-08-18 13:33:03 +0200
commitffff95368531b7a9be392c3eec1f7f054fc01c86 (patch)
tree1720e6c464e958a51b0a2316bcb7e77697f59701 /rules.mk
parent7557f17ed28c7be07be470e65a051858d3b56c0e (diff)
downloadscummvm-rg350-ffff95368531b7a9be392c3eec1f7f054fc01c86.tar.gz
scummvm-rg350-ffff95368531b7a9be392c3eec1f7f054fc01c86.tar.bz2
scummvm-rg350-ffff95368531b7a9be392c3eec1f7f054fc01c86.zip
BUILD: Use split-dwarf debug symbol files by default, when available
This should improve linker time as well as reduce the size of the built binaries (though this does not affect runtime memory usage since the debug segments are not loaded into memory except by a debugger) whilst still giving debug information.
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 0963a46e3c..1324874ef3 100644
--- a/rules.mk
+++ b/rules.mk
@@ -55,6 +55,13 @@ PLUGIN:=
# Add to "plugins" target
plugins: $(PLUGIN-$(MODULE))
+ifdef SPLIT_DWARF
+$(PLUGIN-$(MODULE)).dwp: $(PLUGIN-$(MODULE))
+ $(QUIET_DWP)$(DWP) -e $(PLUGIN-$(MODULE))
+
+plugins: $(PLUGIN-$(MODULE)).dwp
+endif
+
# Add to the PLUGINS variable
PLUGINS += $(PLUGIN-$(MODULE))