File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,7 @@ opt optimize-tests 1 "build tests with optimizations"
535
535
opt libcpp 1 " build with llvm with libc++ instead of libstdc++ when using clang"
536
536
opt llvm-assertions 0 " build LLVM with assertions"
537
537
opt debug-assertions 0 " build with debugging assertions"
538
+ opt debuginfo 0 " build with debugger metadata"
538
539
opt fast-make 0 " use .gitmodules as timestamp for submodule deps"
539
540
opt ccache 0 " invoke gcc/clang via ccache to reuse object files between builds"
540
541
opt local-rust 0 " use an installed rustc rather than downloading a snapshot"
Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ else
133
133
CFG_RUSTC_FLAGS += --cfg ndebug
134
134
endif
135
135
136
+ ifdef CFG_ENABLE_DEBUGINFO
137
+ $(info cfg : enabling debuginfo (CFG_ENABLE_DEBUGINFO))
138
+ CFG_RUSTC_FLAGS += -g
139
+ endif
140
+
136
141
ifdef SAVE_TEMPS
137
142
CFG_RUSTC_FLAGS += --save-temps
138
143
endif
You can’t perform that action at this time.
0 commit comments