Skip to content

Commit ce3bc8d

Browse files
committed
Rollup merge of rust-lang#25949 - mbrubeck:ndebug, r=alexcrichton
As of rust-lang#22980 only `cfg(debug_assertions)` is used in the standard library and rustc code.
2 parents 98612da + 7d95c22 commit ce3bc8d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mk/main.mk

+1-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
127127

128128
ifdef CFG_ENABLE_DEBUG_ASSERTIONS
129129
$(info cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS))
130-
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
131-
else
132-
CFG_RUSTC_FLAGS += --cfg ndebug
130+
CFG_RUSTC_FLAGS += -C debug-assertions=on
133131
endif
134132

135133
ifdef CFG_ENABLE_DEBUGINFO

0 commit comments

Comments
 (0)