diff options
author | 2019-09-07 10:14:47 +0100 | |
---|---|---|
committer | 2019-09-07 10:14:47 +0100 | |
commit | 3b5575b633bd50338d09091c09858fff725b1d60 (patch) | |
tree | 6a4be960c30116e737fbc95123fdd242b12f3444 | |
parent | gcc-config: drop empty /etc/env.d/05gcc-${CTARGET} files (diff) | |
download | gcc-config-3b5575b633bd50338d09091c09858fff725b1d60.tar.gz gcc-config-3b5575b633bd50338d09091c09858fff725b1d60.tar.bz2 gcc-config-3b5575b633bd50338d09091c09858fff725b1d60.zip |
README: add examples of querying facts about toolchains
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r-- | README | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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. ------------------------- |