mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-29 19:50:37 +00:00
DEBUGANYWAY -> FORCEDEBUG in Common.mak
git-svn-id: https://svn.eduke32.com/eduke32@6548 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d3417b763a
commit
882877054b
1 changed files with 9 additions and 9 deletions
18
Common.mak
18
Common.mak
|
@ -289,7 +289,7 @@ endif
|
||||||
|
|
||||||
# CPLUSPLUS - 1 := enable C++ building
|
# CPLUSPLUS - 1 := enable C++ building
|
||||||
# RELEASE - 1 := no debugging
|
# RELEASE - 1 := no debugging
|
||||||
# DEBUGANYWAY:
|
# FORCEDEBUG:
|
||||||
# 1 := Include debug symbols even when generating release code.
|
# 1 := Include debug symbols even when generating release code.
|
||||||
# 2 := Also enable sanitizers with Clang. On the C side, make 'sprite' etc. be real arrays.
|
# 2 := Also enable sanitizers with Clang. On the C side, make 'sprite' etc. be real arrays.
|
||||||
# KRANDDEBUG - 1 := include logging of krand() calls for debugging the demo system
|
# KRANDDEBUG - 1 := include logging of krand() calls for debugging the demo system
|
||||||
|
@ -330,7 +330,7 @@ MIXERTYPE := SDL
|
||||||
SDL_TARGET := 2
|
SDL_TARGET := 2
|
||||||
|
|
||||||
# Debugging/Build options
|
# Debugging/Build options
|
||||||
DEBUGANYWAY := 0
|
FORCEDEBUG := 0
|
||||||
KRANDDEBUG := 0
|
KRANDDEBUG := 0
|
||||||
PROFILER := 0
|
PROFILER := 0
|
||||||
# Make allocache() a wrapper around malloc()? Useful for debugging
|
# Make allocache() a wrapper around malloc()? Useful for debugging
|
||||||
|
@ -347,7 +347,7 @@ ifneq (0,$(KRANDDEBUG))
|
||||||
endif
|
endif
|
||||||
ifneq (100,$(RELEASE)$(PROFILER)$(ALLOCACHE_AS_MALLOC))
|
ifneq (100,$(RELEASE)$(PROFILER)$(ALLOCACHE_AS_MALLOC))
|
||||||
# so that we have debug symbols
|
# so that we have debug symbols
|
||||||
DEBUGANYWAY := 1
|
FORCEDEBUG := 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),WINDOWS)
|
ifeq ($(PLATFORM),WINDOWS)
|
||||||
|
@ -385,7 +385,7 @@ endif
|
||||||
ifeq ($(RELEASE),0)
|
ifeq ($(RELEASE),0)
|
||||||
override STRIP :=
|
override STRIP :=
|
||||||
endif
|
endif
|
||||||
ifneq ($(DEBUGANYWAY),0)
|
ifneq ($(FORCEDEBUG),0)
|
||||||
override STRIP :=
|
override STRIP :=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ endif
|
||||||
|
|
||||||
##### Debugging
|
##### Debugging
|
||||||
|
|
||||||
ifneq ($(RELEASE)$(DEBUGANYWAY),10)
|
ifneq ($(RELEASE)$(FORCEDEBUG),10)
|
||||||
ifeq ($(PACKAGE_REPOSITORY),0)
|
ifeq ($(PACKAGE_REPOSITORY),0)
|
||||||
COMMONFLAGS += -g
|
COMMONFLAGS += -g
|
||||||
ifeq (0,$(CLANG))
|
ifeq (0,$(CLANG))
|
||||||
|
@ -593,12 +593,12 @@ CLANG_DEBUG_FLAGS := -fsanitize=address -fsanitize=bounds,enum,float-cast-overfl
|
||||||
#CLANG_DEBUG_FLAGS := $(CLANG_DEBUG_FLAGS),unsigned-integer-overflow
|
#CLANG_DEBUG_FLAGS := $(CLANG_DEBUG_FLAGS),unsigned-integer-overflow
|
||||||
#CLANG_DEBUG_FLAGS := $(CLANG_DEBUG_FLAGS) -fsanitize-undefined-trap-on-error
|
#CLANG_DEBUG_FLAGS := $(CLANG_DEBUG_FLAGS) -fsanitize-undefined-trap-on-error
|
||||||
|
|
||||||
ifeq (0,$(DEBUGANYWAY))
|
ifeq (0,$(FORCEDEBUG))
|
||||||
COMPILERFLAGS += -DNDEBUG
|
COMPILERFLAGS += -DNDEBUG
|
||||||
else
|
else
|
||||||
COMPILERFLAGS += -DDEBUGGINGAIDS=$(DEBUGANYWAY)
|
COMPILERFLAGS += -DDEBUGGINGAIDS=$(FORCEDEBUG)
|
||||||
ifneq (0,$(CLANG))
|
ifneq (0,$(CLANG))
|
||||||
ifeq (2,$(DEBUGANYWAY))
|
ifeq (2,$(FORCEDEBUG))
|
||||||
COMMONFLAGS += $(CLANG_DEBUG_FLAGS)
|
COMMONFLAGS += $(CLANG_DEBUG_FLAGS)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -641,7 +641,7 @@ else
|
||||||
COMMONFLAGS += -funswitch-loops
|
COMMONFLAGS += -funswitch-loops
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (0,$(DEBUGANYWAY))
|
ifeq (0,$(FORCEDEBUG))
|
||||||
COMMONFLAGS += -fomit-frame-pointer
|
COMMONFLAGS += -fomit-frame-pointer
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue