Skip to content

Commit fd4374a

Browse files
On 64-bit OSs compiling Mupen64bit requires more swap
On 64-bit OSs compiling Mupen64bit requires more swap Compiling on 64bit requires more memory
1 parent 6165d6d commit fd4374a

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

scriptmodules/emulators/mupen64plus.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ function sources_mupen64plus() {
152152
}
153153

154154
function build_mupen64plus() {
155-
rpSwap on 750
155+
if isPlatform "64bit"; then
156+
rpSwap on 2048
157+
else
158+
rpSwap on 750
159+
fi
156160

157161
local dir
158162
local params=()

scriptmodules/libretrocores/lr-mupen64plus-next.sh

+8
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ function build_lr-mupen64plus-next() {
5353
params+=(FORCE_GLES=1)
5454
fi
5555

56+
if isPlatform "64bit"; then
57+
rpSwap on 2048
58+
else
59+
rpSwap on 750
60+
fi
61+
5662
# use a custom core name to avoid core option name clashes with lr-mupen64plus
5763
params+=(CORE_NAME=mupen64plus-next)
5864
make "${params[@]}" clean
@@ -64,6 +70,8 @@ function build_lr-mupen64plus-next() {
6470
make "${params[@]}"
6571
fi
6672

73+
rpSwap off
74+
6775
md_ret_require="$md_build/mupen64plus_next_libretro.so"
6876
}
6977

scriptmodules/libretrocores/lr-mupen64plus.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ function sources_lr-mupen64plus() {
5252
}
5353

5454
function build_lr-mupen64plus() {
55-
rpSwap on 750
55+
if isPlatform "64bit"; then
56+
rpSwap on 2048
57+
else
58+
rpSwap on 750
59+
fi
5660
local params=()
5761
if isPlatform "videocore"; then
5862
params+=(platform="$__platform")

0 commit comments

Comments
 (0)