Skip to content

Commit

Permalink
Optimize build by removing unused symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveMHz committed Aug 15, 2024
1 parent 156dad7 commit 5919ab9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ CFLAGS += \
-I$(CURDIR)/source \
-DWIN32

# Optimize build by removing unused symbols
CFLAGS += \
-ffunction-sections \
-fdata-sections
CXXFLAGS += \
-ffunction-sections \
-fdata-sections

include $(NXDK_DIR)/Makefile

$(OBJS): $(CURDIR)/source/resources.obj
Expand Down

0 comments on commit 5919ab9

Please sign in to comment.