diff options
author | Sam James <sam@gentoo.org> | 2023-06-04 05:37:20 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-06-04 05:37:44 +0100 |
commit | 6acf6385d4837b8e52399322b3b789fee9d77274 (patch) | |
tree | 62e7e63745392f423e790f4bf55b9508dfdf7be7 /sys-devel | |
parent | sys-devel/llvm: restore filter-lto for 16.x for now (diff) | |
download | gentoo-6acf6385d4837b8e52399322b3b789fee9d77274.tar.gz gentoo-6acf6385d4837b8e52399322b3b789fee9d77274.tar.bz2 gentoo-6acf6385d4837b8e52399322b3b789fee9d77274.zip |
sys-devel/clang: restore filter-lto for 16.x for now
We've reverted it upstream for 16.x, but will be fixed for 17.
Bug: https://bugs.gentoo.org/873670
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/clang/clang-16.0.4.ebuild | 4 | ||||
-rw-r--r-- | sys-devel/clang/clang-16.0.5.9999.ebuild | 4 | ||||
-rw-r--r-- | sys-devel/clang/clang-16.0.5.ebuild | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/sys-devel/clang/clang-16.0.4.ebuild b/sys-devel/clang/clang-16.0.4.ebuild index a6f929936e58..df30d842374c 100644 --- a/sys-devel/clang/clang-16.0.4.ebuild +++ b/sys-devel/clang/clang-16.0.4.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit cmake llvm llvm.org multilib multilib-minimal +inherit cmake flag-o-matic llvm llvm.org multilib multilib-minimal inherit prefix python-single-r1 toolchain-funcs DESCRIPTION="C language family frontend for LLVM" @@ -255,6 +255,8 @@ get_distribution_components() { } multilib_src_configure() { + tc-is-gcc && filter-lto # GCC miscompiles LLVM, bug #873670 + local mycmakeargs=( -DDEFAULT_SYSROOT=$(usex prefix-guest "" "${EPREFIX}") -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}" diff --git a/sys-devel/clang/clang-16.0.5.9999.ebuild b/sys-devel/clang/clang-16.0.5.9999.ebuild index 76f5d288b711..8a26831b2e61 100644 --- a/sys-devel/clang/clang-16.0.5.9999.ebuild +++ b/sys-devel/clang/clang-16.0.5.9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit cmake llvm llvm.org multilib multilib-minimal +inherit cmake flag-o-matic llvm llvm.org multilib multilib-minimal inherit prefix python-single-r1 toolchain-funcs DESCRIPTION="C language family frontend for LLVM" @@ -255,6 +255,8 @@ get_distribution_components() { } multilib_src_configure() { + tc-is-gcc && filter-lto # GCC miscompiles LLVM, bug #873670 + local mycmakeargs=( -DDEFAULT_SYSROOT=$(usex prefix-guest "" "${EPREFIX}") -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}" diff --git a/sys-devel/clang/clang-16.0.5.ebuild b/sys-devel/clang/clang-16.0.5.ebuild index a6f929936e58..df30d842374c 100644 --- a/sys-devel/clang/clang-16.0.5.ebuild +++ b/sys-devel/clang/clang-16.0.5.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit cmake llvm llvm.org multilib multilib-minimal +inherit cmake flag-o-matic llvm llvm.org multilib multilib-minimal inherit prefix python-single-r1 toolchain-funcs DESCRIPTION="C language family frontend for LLVM" @@ -255,6 +255,8 @@ get_distribution_components() { } multilib_src_configure() { + tc-is-gcc && filter-lto # GCC miscompiles LLVM, bug #873670 + local mycmakeargs=( -DDEFAULT_SYSROOT=$(usex prefix-guest "" "${EPREFIX}") -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/${LLVM_MAJOR}" |