summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2021-11-20 20:24:24 -0300
committerThiago Kenji Okada <thiagokokada@gmail.com>2021-11-20 20:27:48 -0300
commit08b402b70e3d84d089f3de7221423790afd6a06a (patch)
treee02deb27eb12adcac8e8df792908232333af9ce3
parentf435d7d6310cd55af254518eb2f69d0d866a4cec (diff)
libretro: enableParalellBuilding, except for older MAMEs
MAME since 0.225 have a fix for the build issues while building in parallel. Since libretro.mame is on 0.227 right now, should be safe to enable. Since eventually enableParallelBuilding should be the default, enabling it for all cores except the older MAMEs seems better than just enabling for libretro.mame.
-rw-r--r--pkgs/misc/emulators/retroarch/cores.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/misc/emulators/retroarch/cores.nix b/pkgs/misc/emulators/retroarch/cores.nix
index c7b94e29589a..ab13e041139c 100644
--- a/pkgs/misc/emulators/retroarch/cores.nix
+++ b/pkgs/misc/emulators/retroarch/cores.nix
@@ -91,6 +91,8 @@ let
--add-flags "-L $COREDIR/${d2u core}_libretro${stdenv.hostPlatform.extensions.sharedLibrary} $@"
'';
+ enableParallelBuilding = true;
+
passthru = {
inherit core;
libretroCore = "/lib/retroarch/cores";
@@ -427,7 +429,6 @@ in
core = "mame";
description = "Port of MAME to libretro";
license = with lib.licenses; [ bsd3 gpl2Plus ];
-
extraBuildInputs = [ alsa-lib libGLU libGL portaudio python3 xorg.libX11 ];
postPatch = ''
# Prevent the failure during the parallel building of:
@@ -443,6 +444,7 @@ in
license = "MAME";
makefile = "Makefile";
makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "IS_X86=0";
+ enableParallelBuilding = false;
};
mame2003 = mkLibRetroCore {
@@ -450,6 +452,7 @@ in
description = "Port of MAME ~2003 to libretro";
license = "MAME";
makefile = "Makefile";
+ enableParallelBuilding = false;
};
mame2003-plus = mkLibRetroCore {
@@ -457,6 +460,7 @@ in
description = "Port of MAME ~2003+ to libretro";
license = "MAME";
makefile = "Makefile";
+ enableParallelBuilding = false;
};
mame2010 = mkLibRetroCore {
@@ -465,6 +469,7 @@ in
license = "MAME";
makefile = "Makefile";
makeFlags = lib.optionals stdenv.hostPlatform.isAarch64 [ "PTR64=1" "ARM_ENABLED=1" "X86_SH2DRC=0" "FORCE_DRC_C_BACKEND=1" ];
+ enableParallelBuilding = false;
};
mame2015 = mkLibRetroCore {
@@ -474,6 +479,7 @@ in
extraNativeBuildInputs = [ python27 ];
extraBuildInputs = [ alsa-lib ];
makefile = "Makefile";
+ enableParallelBuilding = false;
};
mame2016 = mkLibRetroCore {
@@ -494,6 +500,7 @@ in
# make -C 3rdparty/genie/build/gmake.linux -f genie.make obj/Release/src/host/lua-5.3.0/src/lgc.o
mkdir -p 3rdparty/genie/build/gmake.linux/obj/Release/src/host/lua-5.3.0/src
'';
+ enableParallelBuilding = false;
};
mesen = mkLibRetroCore {
@@ -523,7 +530,6 @@ in
src = getCoreSrc "mupen64plus";
description = "Libretro port of Mupen64 Plus, GL only";
license = lib.licenses.gpl3Only;
-
extraBuildInputs = [ libGLU libGL libpng nasm xorg.libX11 ];
makefile = "Makefile";
};