From 56e6e9080dbc3bc97bdf34bb29bda2be92596f44 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Mon, 2 Dec 2024 14:05:05 +0000 Subject: [PATCH] sys-libc/libcxxabi: Support cross build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inherit the `crossdev` eclass and use a cross sysroot when a custom target is specified. That allows to bootstrap libcxx with crossdev. Signed-off-by: Michal Rostecki Closes: https://github.com/gentoo/gentoo/pull/39280 Signed-off-by: Michał Górny --- .../libcxxabi/libcxxabi-19.1.7-r1.ebuild | 123 ++++++++++++++++++ .../libcxxabi/libcxxabi-20.1.0.ebuild | 22 +++- .../libcxxabi/libcxxabi-21.0.0.9999.ebuild | 22 +++- 3 files changed, 157 insertions(+), 10 deletions(-) create mode 100644 llvm-runtimes/libcxxabi/libcxxabi-19.1.7-r1.ebuild diff --git a/llvm-runtimes/libcxxabi/libcxxabi-19.1.7-r1.ebuild b/llvm-runtimes/libcxxabi/libcxxabi-19.1.7-r1.ebuild new file mode 100644 index 0000000000000..427d46554b235 --- /dev/null +++ b/llvm-runtimes/libcxxabi/libcxxabi-19.1.7-r1.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +inherit cmake-multilib crossdev flag-o-matic llvm.org llvm-utils +inherit python-any-r1 toolchain-funcs + +DESCRIPTION="Low level support for a standard C++ library" +HOMEPAGE="https://libcxxabi.llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~sparc ~x86 ~arm64-macos ~x64-macos" +IUSE="+clang +static-libs test" +REQUIRED_USE="test? ( clang )" +RESTRICT="!test? ( test )" + +# in 15.x, cxxabi.h is moving from libcxx to libcxxabi +RDEPEND+=" + !