From ffff95368531b7a9be392c3eec1f7f054fc01c86 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 1 Nov 2017 17:15:35 -0500 Subject: 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. --- rules.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rules.mk') 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)) -- cgit v1.2.3