Skip to content

Commit ee1a031

Browse files
authored
Merge pull request #3949 from joolswills/mame_gcc_10
mame/lr-mame - fix building on bullseye
2 parents 0ddae35 + dc2ac1f commit ee1a031

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

scriptmodules/emulators/mame.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rp_module_flags="!mali !armv6 !:\$__gcc_version:-lt:7"
1919

2020
function _get_branch_mame() {
2121
# starting with 0.265, GCC 10.3 or later is required for full C++17 support
22-
if [[ "$__gcc_version" -lt 10 ]]; then
22+
if compareVersions "$(gcc -dumpfullversion)" lt 10.3.0; then
2323
echo "mame0264"
2424
return
2525
fi

scriptmodules/libretrocores/lr-mame.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ rp_module_id="lr-mame"
1313
rp_module_desc="MAME emulator - MAME (current) port for libretro"
1414
rp_module_help="ROM Extension: .zip\n\nCopy your MAME roms to either $romdir/mame-libretro or\n$romdir/arcade"
1515
rp_module_licence="GPL2 https://raw.githubusercontent.com/libretro/mame/master/COPYING"
16-
rp_module_repo="git https://github.com/libretro/mame.git master :_get_version_lr-mame"
16+
rp_module_repo="git https://github.com/libretro/mame.git :_get_version_lr-mame"
1717
rp_module_section="exp"
1818
rp_module_flags="!:\$__gcc_version:-lt:7"
1919

2020
function _get_version_lr-mame() {
21-
local tagname
22-
if [[ "$__gcc_version" -lt 10 ]]; then
23-
tagname="lrmame0264"
21+
if compareVersions "$(gcc -dumpfullversion)" lt 10.3.0; then
22+
echo "lrmame0264"
2423
fi
25-
echo "$tagname"
2624
}
2725
function _get_params_lr-mame() {
2826
local params=(OSD=retro RETRO=1 PYTHON_EXECUTABLE=python3 NOWERROR=1 OS=linux OPTIMIZE=2 TARGETOS=linux CONFIG=libretro NO_USE_MIDI=1 NO_USE_PORTAUDIO=1 TARGET=mame)

0 commit comments

Comments
 (0)