diff options
| author | Michal Rostecki <vadorovsky@protonmail.com> | 2025-10-07 16:43:49 +0200 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-11-27 00:25:00 +0000 |
| commit | 3eca95d2b591aac65566a09071573e2fed982c44 (patch) | |
| tree | 1b877d11b3841f94cf247e1abed40b39dc021618 /llvm-runtimes/clang-unwindlib-config/clang-unwindlib-config-17.ebuild | |
| parent | a828ba78af19c0a63b708577749fb4bdf5412c89 (diff) | |
| download | gentoo-3eca95d2b591aac65566a09071573e2fed982c44.tar.gz gentoo-3eca95d2b591aac65566a09071573e2fed982c44.tar.bz2 gentoo-3eca95d2b591aac65566a09071573e2fed982c44.zip | |
llvm-runtimes/clang-unwindlib-config: add 16, 17, 18, 19
Closes: https://bugs.gentoo.org/951445
Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43784
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'llvm-runtimes/clang-unwindlib-config/clang-unwindlib-config-17.ebuild')
| -rw-r--r-- | llvm-runtimes/clang-unwindlib-config/clang-unwindlib-config-17.ebuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/llvm-runtimes/clang-unwindlib-config/clang-unwindlib-config-17.ebuild b/llvm-runtimes/clang-unwindlib-config/clang-unwindlib-config-17.ebuild new file mode 100644 index 000000000000..a48029c5aa37 --- /dev/null +++ b/llvm-runtimes/clang-unwindlib-config/clang-unwindlib-config-17.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Default unwindlib configuration for clang" +HOMEPAGE="https://clang.llvm.org/" +S=${WORKDIR} + +LICENSE="public-domain" +SLOT="${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~arm64-macos ~ppc-macos ~x64-macos" +IUSE="default-compiler-rt llvm-libunwind" + +RDEPEND=" + default-compiler-rt? ( + llvm-libunwind? ( >=llvm-runtimes/libunwind-${PV}[static-libs] ) + !llvm-libunwind? ( sys-libs/libunwind[static-libs] ) + ) + !default-compiler-rt? ( sys-devel/gcc ) +" + +src_install() { + insinto "/etc/clang/${SLOT}" + newins - gentoo-unwindlib.cfg <<-EOF + # This file is initially generated by ${CATEGORY}/${PN}. + # It is used to control the default unwindlib used by clang. + + --unwindlib=$(usex default-compiler-rt libunwind libgcc) + EOF +} |
