Skip to content

Commit

Permalink
Stop passing the old ndebug/debug cfg directives
Browse files Browse the repository at this point in the history
As of #22980 only `cfg(debug_assertions)` is used in the
standard library and rustc code.
  • Loading branch information
mbrubeck committed Jun 1, 2015
1 parent 3e561f0 commit 7d95c22
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mk/main.mk
Expand Up @@ -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
Expand Down

0 comments on commit 7d95c22

Please sign in to comment.