pcsx2: build with LTO
This commit is contained in:
parent
d6def694c1
commit
f21ced0bb5
@ -1,6 +1,6 @@
|
|||||||
{ alsaLib, cmake, fetchFromGitHub, gettext, glib, gtk3, harfbuzz, libaio
|
{ alsaLib, cmake, fetchFromGitHub, gcc-unwrapped, gettext, glib, gtk3, harfbuzz
|
||||||
, libpcap, libpng, libxml2, makeWrapper, perl, pkgconfig, portaudio, SDL2
|
, libaio, libpcap, libpng, libxml2, makeWrapper, perl, pkgconfig, portaudio
|
||||||
, soundtouch, stdenv, udev, wrapGAppsHook, wxGTK, zlib
|
, SDL2, soundtouch, stdenv, udev, wrapGAppsHook, wxGTK, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
@ -25,12 +25,20 @@ stdenv.mkDerivation {
|
|||||||
"-DPACKAGE_MODE=TRUE"
|
"-DPACKAGE_MODE=TRUE"
|
||||||
"-DPLUGIN_DIR=${placeholder "out"}/lib/pcsx2"
|
"-DPLUGIN_DIR=${placeholder "out"}/lib/pcsx2"
|
||||||
"-DREBUILD_SHADER=TRUE"
|
"-DREBUILD_SHADER=TRUE"
|
||||||
|
"-DUSE_LTO=TRUE"
|
||||||
"-DwxWidgets_CONFIG_EXECUTABLE=${wxGTK}/bin/wx-config"
|
"-DwxWidgets_CONFIG_EXECUTABLE=${wxGTK}/bin/wx-config"
|
||||||
"-DwxWidgets_INCLUDE_DIRS=${wxGTK}/include"
|
"-DwxWidgets_INCLUDE_DIRS=${wxGTK}/include"
|
||||||
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
|
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
|
||||||
"-DXDG_STD=TRUE"
|
"-DXDG_STD=TRUE"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace cmake/BuildParameters.cmake \
|
||||||
|
--replace /usr/bin/gcc-ar ${gcc-unwrapped}/bin/gcc-ar \
|
||||||
|
--replace /usr/bin/gcc-nm ${gcc-unwrapped}/bin/gcc-nm \
|
||||||
|
--replace /usr/bin/gcc-ranlib ${gcc-unwrapped}/bin/gcc-ranlib
|
||||||
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram $out/bin/PCSX2 \
|
wrapProgram $out/bin/PCSX2 \
|
||||||
--set __GL_THREADED_OPTIMIZATIONS 1
|
--set __GL_THREADED_OPTIMIZATIONS 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user