commit: 3b5575b633bd50338d09091c09858fff725b1d60
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 7 09:14:47 2019 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> 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 <slyfox <AT> 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.
-------------------------