Skip to content

Commit 59e332b

Browse files
committed
configure: Disable debug assertions by default
1 parent ed8eebd commit 59e332b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ opt optimize-llvm 1 "build optimized LLVM"
534534
opt optimize-tests 1 "build tests with optimizations"
535535
opt libcpp 1 "build with llvm with libc++ instead of libstdc++ when using clang"
536536
opt llvm-assertions 1 "build LLVM with assertions"
537-
opt debug-assertions 1 "build with extra debug fun"
537+
opt debug-assertions 0 "build with extra debug fun"
538538
opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
539539
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
540540
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"

mk/main.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ endif
126126

127127
CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
128128

129-
ifdef CFG_DISABLE_DEBUG_ASSERTIONS
130-
CFG_RUSTC_FLAGS += --cfg ndebug
131-
else
129+
ifdef CFG_ENABLE_DEBUG_ASSERTIONS
132130
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG_ASSERTIONS))
133131
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
132+
else
133+
CFG_RUSTC_FLAGS += --cfg ndebug
134134
endif
135135

136136
ifdef SAVE_TEMPS

0 commit comments

Comments
 (0)