Skip to content

Commit 7d95c22

Browse files
committed
Stop passing the old ndebug/debug cfg directives
As of rust-lang#22980 only `cfg(debug_assertions)` is used in the standard library and rustc code.
1 parent 3e561f0 commit 7d95c22

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
@@ -130,9 +130,7 @@ CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
130130

131131
ifdef CFG_ENABLE_DEBUG_ASSERTIONS
132132
$(info cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS))
133-
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
134-
else
135-
CFG_RUSTC_FLAGS += --cfg ndebug
133+
CFG_RUSTC_FLAGS += -C debug-assertions=on
136134
endif
137135

138136
ifdef CFG_ENABLE_DEBUGINFO

0 commit comments

Comments
 (0)