Skip to content

Commit

Permalink
(WiiU) Fix for modern devkitPPC versions
Browse files Browse the repository at this point in the history
This change removes the old -mwup flag that is no longer in current versions of devkitPPC. The equivalent flags are provided instead.

This change also removes the int/long int tweaks required for the version of devkitPPC that RetroArch was pinned to. This will cause new, non-fatal, meaningless compiler warnings on the old version. The build and core still work fine. These warnings will be silenced when the project updates to a newer version of devkitPPC.
  • Loading branch information
ashquarky committed Dec 26, 2022
1 parent 2ed8d68 commit 1ab2e85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libretro/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,12 @@ else ifneq (,$(filter $(platform), ngc wii wiiu))
CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
CXXFLAGS += -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
CXXFLAGS += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int
STATIC_LINKING=1
STATIC_LINKING_LINK=1

# Nintendo WiiU
ifneq (,$(findstring wiiu,$(platform)))
CXXFLAGS += -mwup
CXXFLAGS += -ffunction-sections -fdata-sections -D__wiiu__ -D__wut__

# Nintendo Wii
else ifneq (,$(findstring wii,$(platform)))
Expand Down

0 comments on commit 1ab2e85

Please sign in to comment.