From 404db4d9a1ddaab38a54ff3df06a29f59179320c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 10 May 2011 17:48:49 -0700 Subject: [PATCH] build: Add a DEBUG flag that turns on -g --- Makefile.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.in b/Makefile.in index c32ac1e4986..534293d00a7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -27,6 +27,9 @@ endif ifdef NO_TYPESTATE CFG_RUSTC_FLAGS += --no-typestate endif +ifdef DEBUG + CFG_RUSTC_FLAGS += -g +endif # platform-specific auto-configuration include $(CFG_SRC_DIR)/mk/platform.mk