From 3c16671e39a8a153bbd6f9dc94bd21c84b9a199f Mon Sep 17 00:00:00 2001 From: saulfabreg Wii VC Project Date: Fri, 18 Aug 2023 15:51:12 -0500 Subject: [PATCH] Fix GameCube builds of VBA-M Libretro too GameCube is a big-endian system too, so let's fix it too and include it on the nightly buildbot for GCN. --- .gitlab-ci.yml | 10 ++++++++++ src/libretro/Makefile | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8370ccd2..9445354a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,6 +57,10 @@ include: - project: 'libretro-infrastructure/ci-templates' file: '/vita-static.yml' + # Nintendo GameCube + - project: 'libretro-infrastructure/ci-templates' + file: '/ngc-static.yml' + # Nintendo Wii - project: 'libretro-infrastructure/ci-templates' file: '/wii-static.yml' @@ -172,6 +176,12 @@ libretro-build-vita: - .libretro-vita-static-retroarch-master - .core-defs +# Nintendo GameCube +libretro-build-ngc: + extends: + - .libretro-ngc-static-retroarch-master + - .core-defs + # Nintendo Wii libretro-build-wii: extends: diff --git a/src/libretro/Makefile b/src/libretro/Makefile index 9dc70b52..03a8db20 100644 --- a/src/libretro/Makefile +++ b/src/libretro/Makefile @@ -286,7 +286,7 @@ else ifeq ($(platform), ngc) CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT) CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT) AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) - ENDIANNESS_DEFINES += -DMSB_FIRST + ENDIANNESS_DEFINES += -DMSB_FIRST -DWORDS_BIGENDIAN=1 PLATFORM_DEFINES += -DGEKKO -DHW_DOL -mrvl -mcpu=750 -meabi -mhard-float -D__ppc__ PLATFORM_DEFINES += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int STATIC_LINKING=1