build: Add a DEBUG flag that turns on -g

This commit is contained in:
Patrick Walton 2011-05-10 17:48:49 -07:00
parent 7da9101e11
commit 404db4d9a1
1 changed files with 3 additions and 0 deletions

View File

@ -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