Rollup merge of #25949 - mbrubeck:ndebug, r=alexcrichton
As of rust-lang/rust#22980 only `cfg(debug_assertions)` is used in the standard library and rustc code.
This commit is contained in:
commit
ce3bc8d884
|
@ -127,9 +127,7 @@ CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
|
||||||
|
|
||||||
ifdef CFG_ENABLE_DEBUG_ASSERTIONS
|
ifdef CFG_ENABLE_DEBUG_ASSERTIONS
|
||||||
$(info cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS))
|
$(info cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS))
|
||||||
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
|
CFG_RUSTC_FLAGS += -C debug-assertions=on
|
||||||
else
|
|
||||||
CFG_RUSTC_FLAGS += --cfg ndebug
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef CFG_ENABLE_DEBUGINFO
|
ifdef CFG_ENABLE_DEBUGINFO
|
||||||
|
|
Loading…
Reference in New Issue