Actually default rustc to have debug! output

Turns out that even if the default is "enabled", that doesn't mean that the
CFG_ENABLE_DEBUG variable will be defined. Instead, test whether
CFG_DISABLE_DEBUG is defined and disable debug things if that's the case.
This commit is contained in:
Alex Crichton 2013-09-21 01:49:38 -07:00
parent db78fdc10c
commit 0442764a9b
1 changed files with 5 additions and 4 deletions

View File

@ -100,12 +100,13 @@ else
CFG_RUSTC_FLAGS += -O --cfg rtopt
endif
ifdef CFG_ENABLE_DEBUG
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG))
CFG_GCCISH_CFLAGS += -DRUST_DEBUG
else
ifdef CFG_DISABLE_DEBUG
CFG_RUSTC_FLAGS += --cfg ndebug
CFG_GCCISH_CFLAGS += -DRUST_NDEBUG
else
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG))
CFG_RUSTC_FLAGS += --cfg debug
CFG_GCCISH_CFLAGS += -DRUST_DEBUG
endif
ifdef SAVE_TEMPS