llvm.org GIT mirror llvm / d448292
This patch causes the --enable-debug-runtime configure flag and the DEBUG_RUNTIME Makefile variable to pass -g to gcc when building LLVM's objects. Without this, it's very hard to debug crashes that happen in Release-Asserts mode but not Debug mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82775 91177308-0d34-0410-b5e6-96231b3b80d8 Jeffrey Yasskin 10 years ago
2 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
312312 CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
313313 C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
314314 LD.Flags += $(OPTIMIZE_OPTION)
315 ifdef DEBUG_RUNTIME
316 BuildMode := $(BuildMode)+Debug
317 CXX.Flags += -g
318 C.Flags += -g
319 LD.Flags += -g
320 KEEP_SYMBOLS := 1
321 endif
315322 else
316323 BuildMode := Debug
317324 CXX.Flags += -g
625625
If set to any value, causes a bitcode library (.bc) to be built.
626626
CONFIG_FILES
627627
Specifies a set of configuration files to be installed.
628
DEBUG_RUNTIME
629
If set to any value, causes the build to include debugging
630 symbols even in optimized objects, libraries and executables. This
631 alters the flags specified to the compilers and linkers. Debugging
632 isn't fun in an optimized build, but it is possible.
628633
DIRS
629634
Specifies a set of directories, usually children of the current
630635 directory, that should also be made using the same goal. These directories