File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ rp_module_flags="!mali !armv6 !:\$__gcc_version:-lt:7"
19
19
20
20
function _get_branch_mame() {
21
21
# 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
23
23
echo " mame0264"
24
24
return
25
25
fi
Original file line number Diff line number Diff line change @@ -13,16 +13,14 @@ rp_module_id="lr-mame"
13
13
rp_module_desc=" MAME emulator - MAME (current) port for libretro"
14
14
rp_module_help=" ROM Extension: .zip\n\nCopy your MAME roms to either $romdir /mame-libretro or\n$romdir /arcade"
15
15
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"
17
17
rp_module_section=" exp"
18
18
rp_module_flags=" !:\$ __gcc_version:-lt:7"
19
19
20
20
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"
24
23
fi
25
- echo " $tagname "
26
24
}
27
25
function _get_params_lr-mame() {
28
26
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)
You can’t perform that action at this time.
0 commit comments