All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] xen: creating debug info is optional
@ 2018-08-30 15:10 Olaf Hering
  2018-08-30 15:23 ` Jan Beulich
  0 siblings, 1 reply; 4+ messages in thread
From: Olaf Hering @ 2018-08-30 15:10 UTC (permalink / raw)
  To: Andrew Cooper, George Dunlap, Ian Jackson, Jan Beulich,
	Julien Grall, Konrad Rzeszutek Wilk, Stefano Stabellini,
	Tim Deegan, Wei Liu, xen-devel
  Cc: Olaf Hering

Creating debug info during build is not strictly required at runtime.
Make it optional by reusing the existing 'debug_symbols=n' knob.
This slightly reduces build time and diskusage, if specified.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 xen/Rules.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xen/Rules.mk b/xen/Rules.mk
index 47c954425d..740b0235e1 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -55,7 +55,10 @@ endif
 
 CFLAGS += -nostdinc -fno-builtin -fno-common
 CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith
-CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h
+ifeq ($(debug_symbols),y)
+CFLAGS += -g
+endif
+CFLAGS += -pipe -D__XEN__ -include $(BASEDIR)/include/xen/config.h
 CFLAGS += '-D__OBJECT_FILE__="$@"'
 
 ifneq ($(clang),y)

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-30 16:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-30 15:10 [PATCH v1] xen: creating debug info is optional Olaf Hering
2018-08-30 15:23 ` Jan Beulich
2018-08-30 15:59   ` Olaf Hering
2018-08-30 16:05     ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.