commit:     d9fac5992604160c628ff17076bf385424399018
Author:     Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Mon Oct 21 02:24:55 2019 +0000
Commit:     Nick Sarnie <sarnex <AT> gentoo <DOT> org>
CommitDate: Mon Oct 21 22:48:19 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9fac599

media-libs/vulkan-loader: Fix building x86 with clang

Append -fno-integrated-as to CFLAGS when building with clang and when
ABI is x86 to prevent breakage.

Closes: https://bugs.gentoo.org/698164
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Peter Levine <plevine457 <AT> gmail.com>
Signed-off-by: Nick Sarnie <sarnex <AT> gentoo.org>

 media-libs/vulkan-loader/vulkan-loader-9999.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild 
b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild
index 3de83b75dd7..7b03900c566 100644
--- a/media-libs/vulkan-loader/vulkan-loader-9999.ebuild
+++ b/media-libs/vulkan-loader/vulkan-loader-9999.ebuild
@@ -21,7 +21,7 @@ else
        S="${WORKDIR}"/${MY_P}
 fi
 
-inherit python-any-r1 cmake-multilib
+inherit toolchain-funcs python-any-r1 cmake-multilib
 
 DESCRIPTION="Vulkan Installable Client Driver (ICD) Loader"
 HOMEPAGE="https://github.com/KhronosGroup/Vulkan-Loader";
@@ -40,6 +40,11 @@ DEPEND="${PYTHON_DEPS}
        )"
 
 multilib_src_configure() {
+       # Integrated clang assembler doesn't work with x86 - Bug #698164
+       if [[ tc-is-clang && ${ABI} == x86 ]]; then
+               append-cflags -fno-integrated-as
+       fi
+
        local mycmakeargs=(
                -DCMAKE_SKIP_RPATH=True
                -DBUILD_TESTS=False

Reply via email to