configure: Add --enable-debuginfo

This commit is contained in:
Brian Anderson 2015-04-08 13:57:37 -07:00
parent 1b34f0aef0
commit 7cbf823353
2 changed files with 6 additions and 0 deletions

1
configure vendored
View File

@ -535,6 +535,7 @@ opt optimize-tests 1 "build tests with optimizations"
opt libcpp 1 "build with llvm with libc++ instead of libstdc++ when using clang"
opt llvm-assertions 0 "build LLVM with assertions"
opt debug-assertions 0 "build with debugging assertions"
opt debuginfo 0 "build with debugger metadata"
opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"

View File

@ -133,6 +133,11 @@ else
CFG_RUSTC_FLAGS += --cfg ndebug
endif
ifdef CFG_ENABLE_DEBUGINFO
$(info cfg: enabling debuginfo (CFG_ENABLE_DEBUGINFO))
CFG_RUSTC_FLAGS += -g
endif
ifdef SAVE_TEMPS
CFG_RUSTC_FLAGS += --save-temps
endif