mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-02 22:14:33 +00:00
Define OOT_DEBUG=0 in retail builds (#1658)
* Define OOT_DEBUG=0 in retail builds
* Fix ifndef
* Replace VI_MODE_EDITOR_INACTIVE
* Revert "Replace VI_MODE_EDITOR_INACTIVE"
This reverts commit f7c4cae7c3
.
* Replace VI_MODE_EDITOR_INACTIVE, take 2
* Revert EnBom_Draw
This commit is contained in:
parent
6d09437c21
commit
9816f62129
14 changed files with 42 additions and 52 deletions
10
Makefile
10
Makefile
|
@ -69,12 +69,12 @@ MAKE = make
|
|||
CPPFLAGS += -fno-dollars-in-identifiers -P
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
CFLAGS += -DOOT_DEBUG
|
||||
CPPFLAGS += -DOOT_DEBUG
|
||||
CFLAGS += -DOOT_DEBUG=1
|
||||
CPPFLAGS += -DOOT_DEBUG=1
|
||||
OPTFLAGS := -O2
|
||||
else
|
||||
CFLAGS += -DNDEBUG
|
||||
CPPFLAGS += -DNDEBUG
|
||||
CFLAGS += -DNDEBUG -DOOT_DEBUG=0
|
||||
CPPFLAGS += -DNDEBUG -DOOT_DEBUG=0
|
||||
OPTFLAGS := -O2 -g3
|
||||
endif
|
||||
|
||||
|
@ -164,7 +164,7 @@ endif
|
|||
ifeq ($(COMPILER),ido)
|
||||
# Have CC_CHECK pretend to be a MIPS compiler
|
||||
MIPS_BUILTIN_DEFS := -D_MIPS_ISA_MIPS2=2 -D_MIPS_ISA=_MIPS_ISA_MIPS2 -D_ABIO32=1 -D_MIPS_SIM=_ABIO32 -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32
|
||||
CC_CHECK = gcc -fno-builtin -fsyntax-only -funsigned-char -std=gnu90 -D_LANGUAGE_C -DNON_MATCHING $(MIPS_BUILTIN_DEFS) $(INC) $(CHECK_WARNINGS)
|
||||
CC_CHECK = gcc -fno-builtin -fsyntax-only -funsigned-char -std=gnu90 -D_LANGUAGE_C -DNON_MATCHING -DOOT_DEBUG=1 $(MIPS_BUILTIN_DEFS) $(INC) $(CHECK_WARNINGS)
|
||||
ifeq ($(shell getconf LONG_BIT), 32)
|
||||
# Work around memory allocation bug in QEMU
|
||||
export QEMU_GUEST_BASE := 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue