Skip to content

Commit 7cbf823

Browse files
committed
configure: Add --enable-debuginfo
1 parent 1b34f0a commit 7cbf823

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ 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 0 "build LLVM with assertions"
537537
opt debug-assertions 0 "build with debugging assertions"
538+
opt debuginfo 0 "build with debugger metadata"
538539
opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
539540
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
540541
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"

mk/main.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ else
133133
CFG_RUSTC_FLAGS += --cfg ndebug
134134
endif
135135

136+
ifdef CFG_ENABLE_DEBUGINFO
137+
$(info cfg: enabling debuginfo (CFG_ENABLE_DEBUGINFO))
138+
CFG_RUSTC_FLAGS += -g
139+
endif
140+
136141
ifdef SAVE_TEMPS
137142
CFG_RUSTC_FLAGS += --save-temps
138143
endif

0 commit comments

Comments
 (0)