commit:     9aebd463333aa33eed184167389f15873ece6f06
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 27 14:48:24 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Mar 27 16:36:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aebd463

app-emulation/dxvk: mark as LTO unsafe

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-emulation/dxvk/dxvk-1.10.3-r1.ebuild                       | 5 +++++
 app-emulation/dxvk/dxvk-2.2-r1.ebuild                          | 5 +++++
 app-emulation/dxvk/{dxvk-2.3.1.ebuild => dxvk-2.3.1-r1.ebuild} | 5 +++++
 app-emulation/dxvk/dxvk-2.3.ebuild                             | 5 +++++
 app-emulation/dxvk/dxvk-9999.ebuild                            | 5 +++++
 5 files changed, 25 insertions(+)

diff --git a/app-emulation/dxvk/dxvk-1.10.3-r1.ebuild 
b/app-emulation/dxvk/dxvk-1.10.3-r1.ebuild
index 7c21ed2aab38..dd2598cfe637 100644
--- a/app-emulation/dxvk/dxvk-1.10.3-r1.ebuild
+++ b/app-emulation/dxvk/dxvk-1.10.3-r1.ebuild
@@ -68,6 +68,11 @@ src_prepare() {
 src_configure() {
        use crossdev-mingw || 
PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
 
+       # random segfaults been reported with LTO in some games, filter as
+       # a safety (note that optimizing this further won't really help
+       # performance, GPU does the actual work)
+       filter-lto
+
        # -mavx with mingw-gcc has a history of obscure issues and
        # disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
        # crashes with -march=skylake >=wine-8.10, similar issues with

diff --git a/app-emulation/dxvk/dxvk-2.2-r1.ebuild 
b/app-emulation/dxvk/dxvk-2.2-r1.ebuild
index 4a1b3cefe2ca..3273526f0700 100644
--- a/app-emulation/dxvk/dxvk-2.2-r1.ebuild
+++ b/app-emulation/dxvk/dxvk-2.2-r1.ebuild
@@ -92,6 +92,11 @@ src_prepare() {
 src_configure() {
        use crossdev-mingw || 
PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
 
+       # random segfaults been reported with LTO in some games, filter as
+       # a safety (note that optimizing this further won't really help
+       # performance, GPU does the actual work)
+       filter-lto
+
        # -mavx with mingw-gcc has a history of obscure issues and
        # disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
        # crashes with -march=skylake >=wine-8.10, similar issues with

diff --git a/app-emulation/dxvk/dxvk-2.3.1.ebuild 
b/app-emulation/dxvk/dxvk-2.3.1-r1.ebuild
similarity index 97%
rename from app-emulation/dxvk/dxvk-2.3.1.ebuild
rename to app-emulation/dxvk/dxvk-2.3.1-r1.ebuild
index fb132f4d809f..c3d261f000ce 100644
--- a/app-emulation/dxvk/dxvk-2.3.1.ebuild
+++ b/app-emulation/dxvk/dxvk-2.3.1-r1.ebuild
@@ -95,6 +95,11 @@ src_prepare() {
 src_configure() {
        use crossdev-mingw || 
PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
 
+       # random segfaults been reported with LTO in some games, filter as
+       # a safety (note that optimizing this further won't really help
+       # performance, GPU does the actual work)
+       filter-lto
+
        # -mavx with mingw-gcc has a history of obscure issues and
        # disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
        # crashes with -march=skylake >=wine-8.10, similar issues with

diff --git a/app-emulation/dxvk/dxvk-2.3.ebuild 
b/app-emulation/dxvk/dxvk-2.3.ebuild
index ab5c0b7cb913..432cc57f5108 100644
--- a/app-emulation/dxvk/dxvk-2.3.ebuild
+++ b/app-emulation/dxvk/dxvk-2.3.ebuild
@@ -92,6 +92,11 @@ src_prepare() {
 src_configure() {
        use crossdev-mingw || 
PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
 
+       # random segfaults been reported with LTO in some games, filter as
+       # a safety (note that optimizing this further won't really help
+       # performance, GPU does the actual work)
+       filter-lto
+
        # -mavx with mingw-gcc has a history of obscure issues and
        # disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
        # crashes with -march=skylake >=wine-8.10, similar issues with

diff --git a/app-emulation/dxvk/dxvk-9999.ebuild 
b/app-emulation/dxvk/dxvk-9999.ebuild
index 231f81d0ebed..46dba5771f65 100644
--- a/app-emulation/dxvk/dxvk-9999.ebuild
+++ b/app-emulation/dxvk/dxvk-9999.ebuild
@@ -95,6 +95,11 @@ src_prepare() {
 src_configure() {
        use crossdev-mingw || 
PATH=${BROOT}/usr/lib/mingw64-toolchain/bin:${PATH}
 
+       # random segfaults been reported with LTO in some games, filter as
+       # a safety (note that optimizing this further won't really help
+       # performance, GPU does the actual work)
+       filter-lto
+
        # -mavx with mingw-gcc has a history of obscure issues and
        # disabling is seen as safer, e.g. `WINEARCH=win32 winecfg`
        # crashes with -march=skylake >=wine-8.10, similar issues with

Reply via email to