Skip to content

Commit

Permalink
lr-mame - disable on systems with gcc < 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joolswills committed Jan 13, 2017
1 parent dddd0ba commit 37fc736
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scriptmodules/libretrocores/lr-mame.sh
Expand Up @@ -20,6 +20,13 @@ function _get_params_lr-mame() {
echo "${params[@]}"
}

function depends_lr-mame() {
if compareVersions $(gcc -dumpversion) lt 5.0.0; then
md_ret_errors+=("Sorry, you need an OS with gcc 5.0 or newer to compile lr-mame")
return 1
fi
}

function sources_lr-mame() {
gitPullOrClone "$md_build" https://github.com/libretro/mame.git
}
Expand Down

0 comments on commit 37fc736

Please sign in to comment.