Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 0/3] toolchain-funcs.eclass: support for querying C++ stdlib and compiler runtime
Date: Sat, 08 Oct 2022 09:43:38
Message-Id: 20221008094329.316318-1-mgorny@gentoo.org
1 Hi,
2
3 Here's a patchset adding two new functions along with tests:
4
5 - tc-get-cxx-stdlib() that determines C++ stdlib used (libc++ vs
6 libstdc++)
7 - tc-get-c-rtlib() that determines C compiler runtime used (libgcc vs
8 compiler-rt)
9
10 I've also included a fix for tests failing if ld.gold is not installed.
11
12
13 Michał Górny (3):
14 toolchain-funcs.eclass: Add tc-get-cxx-stdlib() to get C++ stdlib
15 toolchain-funcs.eclass: Add tc-get-c-rtlib() to get CC runtime
16 eclass/tests/toolchain-funcs.sh: Handle missing ld.gold gracefully
17
18 eclass/tests/toolchain-funcs.sh | 96 ++++++++++++++++++++++-----------
19 eclass/toolchain-funcs.eclass | 64 ++++++++++++++++++++++
20 2 files changed, 130 insertions(+), 30 deletions(-)
21
22 --
23 2.38.0

Replies