Skip to content
Permalink
Browse files

lr-snes9x - update and simplify scriptmodule

* using `platform=armv` is now sufficient for the build to use `-DARM`
  - fixed since a while here: libretro/snes9x#62
* adding `neon` to `platform` has no effect on the built binary of this core
  - there is no NEON-specific code in the core
* also pass `platform` parameter for the clean target as well
  • Loading branch information...
hhromic committed Apr 15, 2019
1 parent 2bb9b75 commit eafbc7ad710a775648034ef306817a913c1b4e85
Showing with 5 additions and 9 deletions.
  1. +5 −9 scriptmodules/libretrocores/lr-snes9x.sh
@@ -20,16 +20,12 @@ function sources_lr-snes9x() {
}

function build_lr-snes9x() {
local params=()
isPlatform "arm" && params+=(platform="armv")

cd libretro
make clean
local platform=""
isPlatform "arm" && platform+="armv"
isPlatform "neon" && platform+="neon"
if [[ -n "$platform" ]]; then
CXXFLAGS+=" -DARM" make platform="$platform"
else
make
fi
make "${params[@]}" clean
make "${params[@]}"
md_ret_require="$md_build/libretro/snes9x_libretro.so"
}

0 comments on commit eafbc7a

Please sign in to comment.
You can’t perform that action at this time.