forked from PretendoNetwork/Inkay
feat: Compile flags for binary size
Small binaries load faster, work better on Aroma Updater, and break the website less
This commit is contained in:
parent
dbb648729a
commit
727f11d04d
2 changed files with 8 additions and 6 deletions
7
Makefile
7
Makefile
|
|
@ -28,15 +28,16 @@ INCLUDES := src src/ext/inih src/lang common
|
|||
#-------------------------------------------------------------------------------
|
||||
# options for code generation
|
||||
#-------------------------------------------------------------------------------
|
||||
CFLAGS := -Wall -O2 -ffunction-sections\
|
||||
$(MACHDEP)
|
||||
OPT := -Os -fno-exceptions -fno-asynchronous-unwind-tables
|
||||
CFLAGS := -Wall -ffunction-sections -fdata-sections \
|
||||
$(MACHDEP) $(OPT)
|
||||
|
||||
CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__
|
||||
|
||||
CXXFLAGS := $(CFLAGS) -std=c++20
|
||||
|
||||
ASFLAGS := -g $(ARCH)
|
||||
LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map) -Wl,-gc-sections -T$(WUMS_ROOT)/share/libkernel.ld $(WUMSSPECS)
|
||||
LDFLAGS = -g $(ARCH) $(OPT) $(RPXSPECS) -Wl,-Map,$(notdir $*.map) -Wl,-gc-sections -T$(WUMS_ROOT)/share/libkernel.ld $(WUMSSPECS)
|
||||
|
||||
ifeq ($(DEBUG),1)
|
||||
CXXFLAGS += -DDEBUG -g
|
||||
|
|
|
|||
Loading…
Reference in a new issue