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
1 changed files with 1 additions and 3 deletions
|
@ -127,9 +127,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
|
||||
|
|
Loading…
Reference in a new issue