Skip to content

Commit ed8eebd

Browse files
committed
configure: Rename --enable-debug to --enable-debug-assertions
1 parent bc9f16c commit ed8eebd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#!/bin/sh
1+
#!/bin/sh
22

33
msg() {
44
echo "configure: $1"
@@ -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 1 "build with extra debug fun"
537+
opt debug-assertions 1 "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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ endif
126126

127127
CFG_JEMALLOC_FLAGS += $(JEMALLOC_FLAGS)
128128

129-
ifdef CFG_DISABLE_DEBUG
129+
ifdef CFG_DISABLE_DEBUG_ASSERTIONS
130130
CFG_RUSTC_FLAGS += --cfg ndebug
131131
else
132-
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG))
132+
$(info cfg: enabling more debugging (CFG_ENABLE_DEBUG_ASSERTIONS))
133133
CFG_RUSTC_FLAGS += --cfg debug -C debug-assertions=on
134134
endif
135135

0 commit comments

Comments
 (0)