From e84d20af34d7b0fb392e08690606658372016a71 Mon Sep 17 00:00:00 2001 From: Mark Street <22226349+mkst@users.noreply.github.com> Date: Wed, 16 Aug 2023 21:19:12 +0100 Subject: [PATCH] Add ps1 gcc-2.91.66 (egcs 1.1.2) (#819) --- backend/compilers/download.py | 19 +++++++++++-------- backend/coreapp/compilers.py | 7 +++++++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/backend/compilers/download.py b/backend/compilers/download.py index 4fd94d9d..510c7ebd 100755 --- a/backend/compilers/download.py +++ b/backend/compilers/download.py @@ -593,15 +593,17 @@ def download_ps1(): # vanilla gcc + maspsx patch + old_gcc_base_url = "https://github.com/decompals/old-gcc/releases/download/0.2" old_gcc_urls = { - "gcc2.6.3-psx": "https://github.com/decompals/old-gcc/releases/download/0.1/gcc-2.6.3-psx.tar.gz", - "gcc2.6.3": "https://github.com/decompals/old-gcc/releases/download/0.1/gcc-2.6.3.tar.gz", - "gcc2.7.1": "https://github.com/decompals/old-gcc/releases/download/0.1/gcc-2.7.1.tar.gz", - "gcc2.7.2": "https://github.com/decompals/old-gcc/releases/download/0.1/gcc-2.7.2.tar.gz", - "gcc2.7.2.1": "https://github.com/decompals/old-gcc/releases/download/0.1/gcc-2.7.2.1.tar.gz", - "gcc2.7.2.3": "https://github.com/decompals/old-gcc/releases/download/0.1/gcc-2.7.2.3.tar.gz", - "gcc2.8.1": "https://github.com/decompals/old-gcc/releases/download/0.1/gcc-2.8.1.tar.gz", - "gcc2.95.2": "https://github.com/decompals/old-gcc/releases/download/0.1/gcc-2.95.2.tar.gz", + "gcc2.6.3-psx": f"{old_gcc_base_url}/gcc-2.6.3-psx.tar.gz", + "gcc2.6.3": f"{old_gcc_base_url}/gcc-2.6.3.tar.gz", + "gcc2.7.1": f"{old_gcc_base_url}/gcc-2.7.1.tar.gz", + "gcc2.7.2": f"{old_gcc_base_url}/gcc-2.7.2.tar.gz", + "gcc2.7.2.1": f"{old_gcc_base_url}/gcc-2.7.2.1.tar.gz", + "gcc2.7.2.3": f"{old_gcc_base_url}/gcc-2.7.2.3.tar.gz", + "gcc2.8.1": f"{old_gcc_base_url}/gcc-2.8.1.tar.gz", + "gcc2.91.66": f"{old_gcc_base_url}/gcc-2.91.66.tar.gz", + "gcc2.95.2": f"{old_gcc_base_url}/gcc-2.95.2.tar.gz", } old_gcc_ids = { "gcc2.6.3-psx": "gcc2.6.3-psx", @@ -611,6 +613,7 @@ def download_ps1(): "gcc2.7.2.1": "gcc2.7.2.1-mipsel", "gcc2.7.2.3": "gcc2.7.2.3-mipsel", "gcc2.8.1": "gcc2.8.1-mipsel", + "gcc2.91.66": "gcc2.91.66-mipsel", "gcc2.95.2": "gcc2.95.2-mipsel", } diff --git a/backend/coreapp/compilers.py b/backend/coreapp/compilers.py index 629bdf4b..c44d9f9f 100644 --- a/backend/coreapp/compilers.py +++ b/backend/coreapp/compilers.py @@ -386,6 +386,12 @@ def preset_from_name(name: str) -> Optional[Preset]: cc=PS1_GCC, ) +GCC29166_MIPSEL = GCCPS1Compiler( + id="gcc2.91.66-mipsel", + platform=PS1, + cc=PS1_GCC, +) + GCC2952_MIPSEL = GCCPS1Compiler( id="gcc2.95.2-mipsel", platform=PS1, @@ -1068,6 +1074,7 @@ def preset_from_name(name: str) -> Optional[Preset]: GCC2721_MIPSEL, GCC2723_MIPSEL, GCC281_MIPSEL, + GCC29166_MIPSEL, GCC2952_MIPSEL, # Saturn CYGNUS_2_7_96Q3,