Skip to content

Commit

Permalink
- The year is 2025.
Browse files Browse the repository at this point in the history
- Enable LTO in executable packer.
  • Loading branch information
Extrems committed Jan 1, 2025
1 parent 5ca7787 commit c1ce6e8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cube/packer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ INCLUDES := ..
# options for code generation
#---------------------------------------------------------------------------------

CFLAGS = -g -O2 -Wall -msdata -G 32768 -ffreestanding $(MACHDEP) $(INCLUDE)
CFLAGS = -g -O2 -Wall -msdata -G 32768 -ffreestanding -flto=auto $(MACHDEP) $(INCLUDE)
CXXFLAGS = $(CFLAGS)

ASFLAGS = $(MACHDEP) -mregnames -D_LANGUAGE_ASSEMBLY $(INCLUDE)
Expand Down
2 changes: 1 addition & 1 deletion cube/patches/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LD = $(DIR)/powerpc-eabi-ld
OBJDUMP = $(DIR)/powerpc-eabi-objdump
OBJCOPY = $(DIR)/powerpc-eabi-objcopy

OPTS = -ffast-math -flto -fipa-pta -fno-tree-loop-distribute-patterns -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,--no-warn-rwx-segments -Wno-address-of-packed-member -Wparentheses -Wno-scalar-storage-order -iquote base -iquote . -iquote ..
OPTS = -ffast-math -flto=auto -fipa-pta -fno-tree-loop-distribute-patterns -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,--no-warn-rwx-segments -Wno-address-of-packed-member -Wparentheses -Wno-scalar-storage-order -iquote base -iquote . -iquote ..

DEST = ../swiss/source/patches

Expand Down
2 changes: 1 addition & 1 deletion cube/swiss/source/gui/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ uiDrawObj_t * info_draw_page(int page_num) {
else if(page_num == 2) {
DrawAddChild(container, DrawLabel(30, 55, "Version Info (3/4):"));
DrawAddChild(container, DrawStyledLabel(640/2, 115, "Swiss version 0.6", 1.0f, true, defaultColor));
DrawAddChild(container, DrawStyledLabel(640/2, 140, "by emu_kidid & Extrems, 2024", 0.75f, true, defaultColor));
DrawAddChild(container, DrawStyledLabel(640/2, 140, "by emu_kidid & Extrems, 2025", 0.75f, true, defaultColor));
sprintf(topStr, "Commit %s Revision %s", GIT_COMMIT, GIT_REVISION);
DrawAddChild(container, DrawStyledLabel(640/2, 165, topStr, 0.75f, true, defaultColor));
DrawAddChild(container, DrawStyledLabel(640/2, 220, "Source/Updates/Issues", 0.75f, true, defaultColor));
Expand Down
13 changes: 6 additions & 7 deletions wii/booter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ INCLUDES :=
# options for code generation
#---------------------------------------------------------------------------------

CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE)
CXXFLAGS = $(CFLAGS)
CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE)
CXXFLAGS = $(CFLAGS)

LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map
LDFLAGS = $(CFLAGS) -Wl,-Map,$(notdir $@).map

#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
Expand Down Expand Up @@ -90,7 +90,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES), -iquote $(CURDIR)/$(dir)) \
#---------------------------------------------------------------------------------
# build a list of library paths
#---------------------------------------------------------------------------------
export LIBPATHS := -L$(LIBOGC_LIB) $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
export LIBPATHS := -L$(LIBOGC_LIB) $(foreach dir,$(LIBDIRS),-L$(dir)/lib)

export OUTPUT := $(CURDIR)/$(TARGET)
.PHONY: $(BUILD) clean
Expand All @@ -109,7 +109,6 @@ clean:
run:
wiiload $(TARGET).dol


#---------------------------------------------------------------------------------
else

Expand All @@ -126,9 +125,9 @@ $(OFILES_SOURCES) : $(HFILES)
#---------------------------------------------------------------------------------
# This rule links in binary data with the .jpg extension
#---------------------------------------------------------------------------------
%.jpg.o %_jpg.h : %.jpg
%.jpg.o %_jpg.h : %.jpg
#---------------------------------------------------------------------------------
@echo $(notdir $<)
$(SILENTMSG) $(notdir $<)
$(bin2o)

-include $(DEPENDS)
Expand Down

0 comments on commit c1ce6e8

Please sign in to comment.