mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
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
This commit is contained in:
@@ -313,6 +313,13 @@ ifeq ($(ENABLE_OPTIMIZED),1)
|
|||||||
CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
||||||
C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
|
||||||
LD.Flags += $(OPTIMIZE_OPTION)
|
LD.Flags += $(OPTIMIZE_OPTION)
|
||||||
|
ifdef DEBUG_RUNTIME
|
||||||
|
BuildMode := $(BuildMode)+Debug
|
||||||
|
CXX.Flags += -g
|
||||||
|
C.Flags += -g
|
||||||
|
LD.Flags += -g
|
||||||
|
KEEP_SYMBOLS := 1
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
BuildMode := Debug
|
BuildMode := Debug
|
||||||
CXX.Flags += -g
|
CXX.Flags += -g
|
||||||
|
@@ -626,6 +626,11 @@
|
|||||||
<dd>If set to any value, causes a bitcode library (.bc) to be built.</dd>
|
<dd>If set to any value, causes a bitcode library (.bc) to be built.</dd>
|
||||||
<dt><a name="CONFIG_FILES"><tt>CONFIG_FILES</tt></a></dt>
|
<dt><a name="CONFIG_FILES"><tt>CONFIG_FILES</tt></a></dt>
|
||||||
<dd>Specifies a set of configuration files to be installed.</dd>
|
<dd>Specifies a set of configuration files to be installed.</dd>
|
||||||
|
<dt><a name="DEBUG_RUNTIME"><tt>DEBUG_RUNTIME</tt></a></dt>
|
||||||
|
<dd>If set to any value, causes the build to include debugging
|
||||||
|
symbols even in optimized objects, libraries and executables. This
|
||||||
|
alters the flags specified to the compilers and linkers. Debugging
|
||||||
|
isn't fun in an optimized build, but it is possible.</dd>
|
||||||
<dt><a name="DIRS"><tt>DIRS</tt></a></dt>
|
<dt><a name="DIRS"><tt>DIRS</tt></a></dt>
|
||||||
<dd>Specifies a set of directories, usually children of the current
|
<dd>Specifies a set of directories, usually children of the current
|
||||||
directory, that should also be made using the same goal. These directories
|
directory, that should also be made using the same goal. These directories
|
||||||
|
Reference in New Issue
Block a user