Skip to content

Commit

Permalink
On 64-bit OSs compiling Mupen64bit requires more swap
Browse files Browse the repository at this point in the history
On 64-bit OSs compiling Mupen64bit requires more swap

Compiling on 64bit requires more memory
  • Loading branch information
GeorgeMcMullen committed Nov 28, 2022
1 parent 6165d6d commit fd4374a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scriptmodules/emulators/mupen64plus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ function sources_mupen64plus() {
}

function build_mupen64plus() {
rpSwap on 750
if isPlatform "64bit"; then
rpSwap on 2048
else
rpSwap on 750
fi

local dir
local params=()
Expand Down
8 changes: 8 additions & 0 deletions scriptmodules/libretrocores/lr-mupen64plus-next.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ function build_lr-mupen64plus-next() {
params+=(FORCE_GLES=1)
fi

if isPlatform "64bit"; then
rpSwap on 2048
else
rpSwap on 750
fi

# use a custom core name to avoid core option name clashes with lr-mupen64plus
params+=(CORE_NAME=mupen64plus-next)
make "${params[@]}" clean
Expand All @@ -64,6 +70,8 @@ function build_lr-mupen64plus-next() {
make "${params[@]}"
fi

rpSwap off

md_ret_require="$md_build/mupen64plus_next_libretro.so"
}

Expand Down
6 changes: 5 additions & 1 deletion scriptmodules/libretrocores/lr-mupen64plus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ function sources_lr-mupen64plus() {
}

function build_lr-mupen64plus() {
rpSwap on 750
if isPlatform "64bit"; then
rpSwap on 2048
else
rpSwap on 750
fi
local params=()
if isPlatform "videocore"; then
params+=(platform="$__platform")
Expand Down

0 comments on commit fd4374a

Please sign in to comment.