commit:     958acb2ffefb980fb7be3cfcfd5c667e567184d4
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Sun Jul  9 14:06:50 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Jul 26 08:00:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=958acb2f

media-libs/embree: Filter LTO with clang

Closes: https://bugs.gentoo.org/910164
Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/31811
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/embree/embree-3.13.4.ebuild | 5 ++++-
 media-libs/embree/embree-3.13.5.ebuild | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/media-libs/embree/embree-3.13.4.ebuild 
b/media-libs/embree/embree-3.13.4.ebuild
index 247a69b0fb6c..1925f9f320b4 100644
--- a/media-libs/embree/embree-3.13.4.ebuild
+++ b/media-libs/embree/embree-3.13.4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake flag-o-matic linux-info
+inherit cmake flag-o-matic linux-info toolchain-funcs
 
 DESCRIPTION="Collection of high-performance ray tracing kernels"
 HOMEPAGE="https://github.com/embree/embree";
@@ -67,6 +67,9 @@ src_configure() {
 
        filter-flags -m*
 
+       # https://bugs.gentoo.org/910164
+       tc-is-clang && filter-lto
+
        local mycmakeargs=(
                # Currently Intel only host their test files on their internal 
network.
                # So it seems like users can't easily get a hold of these and do

diff --git a/media-libs/embree/embree-3.13.5.ebuild 
b/media-libs/embree/embree-3.13.5.ebuild
index 1f94e528f380..7a4464c22033 100644
--- a/media-libs/embree/embree-3.13.5.ebuild
+++ b/media-libs/embree/embree-3.13.5.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake flag-o-matic linux-info
+inherit cmake flag-o-matic linux-info toolchain-funcs
 
 DESCRIPTION="Collection of high-performance ray tracing kernels"
 HOMEPAGE="https://github.com/embree/embree";
@@ -66,6 +66,9 @@ src_configure() {
 
        filter-flags -m*
 
+       # https://bugs.gentoo.org/910164
+       tc-is-clang && filter-lto
+
        local mycmakeargs=(
                # Currently Intel only host their test files on their internal 
network.
                # So it seems like users can't easily get a hold of these and do

Reply via email to