Hi,

Here's a patchset adding two new functions along with tests:

- tc-get-cxx-stdlib() that determines C++ stdlib used (libc++ vs
  libstdc++)
- tc-get-c-rtlib() that determines C compiler runtime used (libgcc vs
  compiler-rt)

I've also included a fix for tests failing if ld.gold is not installed.


Michał Górny (3):
  toolchain-funcs.eclass: Add tc-get-cxx-stdlib() to get C++ stdlib
  toolchain-funcs.eclass: Add tc-get-c-rtlib() to get CC runtime
  eclass/tests/toolchain-funcs.sh: Handle missing ld.gold gracefully

 eclass/tests/toolchain-funcs.sh | 96 ++++++++++++++++++++++-----------
 eclass/toolchain-funcs.eclass   | 64 ++++++++++++++++++++++
 2 files changed, 130 insertions(+), 30 deletions(-)

-- 
2.38.0


Reply via email to