From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 55989158094 for ; Sat, 8 Oct 2022 09:43:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49E2BE0A64; Sat, 8 Oct 2022 09:43:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E6A0FE09EA for ; Sat, 8 Oct 2022 09:43:34 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 0/3] toolchain-funcs.eclass: support for querying C++ stdlib and compiler runtime Date: Sat, 8 Oct 2022 11:43:26 +0200 Message-Id: <20221008094329.316318-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.38.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 17539a23-6c5a-4e3d-b046-6b307ab312dd X-Archives-Hash: 581b1582d0e54982422428e4c6577990 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