Stop passing the old ndebug/debug cfg directives

As of rust-lang/rust#22980 only `cfg(debug_assertions)` is used in the
standard library and rustc code.
This commit is contained in:
Matt Brubeck 2015-06-01 14:01:13 -07:00
parent 3e561f05c0
commit 7d95c22244
1 changed files with 1 additions and 3 deletions

View File

@ -130,9 +130,7 @@ CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
ifdef CFG_ENABLE_DEBUG_ASSERTIONS
$(info cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS))
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
else
CFG_RUSTC_FLAGS += --cfg ndebug
CFG_RUSTC_FLAGS += -C debug-assertions=on
endif
ifdef CFG_ENABLE_DEBUGINFO