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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 06F60138334 for ; Sat, 7 Sep 2019 09:15:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F81EE0AB2; Sat, 7 Sep 2019 09:15:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 04BCFE0AB2 for ; Sat, 7 Sep 2019 09:15:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F5B134ADE4 for ; Sat, 7 Sep 2019 09:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 964574D3 for ; Sat, 7 Sep 2019 09:15:08 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1567847687.3b5575b633bd50338d09091c09858fff725b1d60.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-config:master commit in: / X-VCS-Repository: proj/gcc-config X-VCS-Files: README X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 3b5575b633bd50338d09091c09858fff725b1d60 X-VCS-Branch: master Date: Sat, 7 Sep 2019 09:15:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d0ab2566-67c2-4e71-93a0-75329bb692e8 X-Archives-Hash: 37345d374d63a2986d7c9c95f2fb7634 commit: 3b5575b633bd50338d09091c09858fff725b1d60 Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Sep 7 09:14:47 2019 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Sep 7 09:14:47 2019 +0000 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=3b5575b6 README: add examples of querying facts about toolchains Signed-off-by: Sergei Trofimovich gentoo.org> README | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README b/README index bba2517..b260a28 100644 --- a/README +++ b/README @@ -1,12 +1,21 @@ What is gcc-config? ------------------- -Gentoo allows switching gcc as system runs via gcc-config: +gcc-config allows Gentoo users to switch active gcc safely +and allows querying facts about installed toolchains. + +To switch active gcc while system runs: $ gcc-config x86_64-pc-linux-gnu-8.1.0 $ gcc-config x86_64-pc-linux-gnu-7.2.0 -Ideally changes should be visible instantly and atomically -without shell restart. + Ideally changes should be visible instantly and atomically + without shell restart. + +To query where real gcc binaries are hiding: + $ gcc-config -B $(gcc-config -c) + +To parse a profile into TARGET and toolchain version: + $ gcc-config -S sparc64-unknown-linux-gnu-9.2.0 Files, variables, things. -------------------------