1 |
commit: 3b5575b633bd50338d09091c09858fff725b1d60 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 7 09:14:47 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 7 09:14:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=3b5575b6 |
7 |
|
8 |
README: add examples of querying facts about toolchains |
9 |
|
10 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
11 |
|
12 |
README | 15 ++++++++++++--- |
13 |
1 file changed, 12 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/README b/README |
16 |
index bba2517..b260a28 100644 |
17 |
--- a/README |
18 |
+++ b/README |
19 |
@@ -1,12 +1,21 @@ |
20 |
What is gcc-config? |
21 |
------------------- |
22 |
|
23 |
-Gentoo allows switching gcc as system runs via gcc-config: |
24 |
+gcc-config allows Gentoo users to switch active gcc safely |
25 |
+and allows querying facts about installed toolchains. |
26 |
+ |
27 |
+To switch active gcc while system runs: |
28 |
$ gcc-config x86_64-pc-linux-gnu-8.1.0 |
29 |
$ gcc-config x86_64-pc-linux-gnu-7.2.0 |
30 |
|
31 |
-Ideally changes should be visible instantly and atomically |
32 |
-without shell restart. |
33 |
+ Ideally changes should be visible instantly and atomically |
34 |
+ without shell restart. |
35 |
+ |
36 |
+To query where real gcc binaries are hiding: |
37 |
+ $ gcc-config -B $(gcc-config -c) |
38 |
+ |
39 |
+To parse a profile into TARGET and toolchain version: |
40 |
+ $ gcc-config -S sparc64-unknown-linux-gnu-9.2.0 |
41 |
|
42 |
Files, variables, things. |
43 |
------------------------- |