1 |
commit: d0c8542b2ea3b6234c50e78c0067713202f4eb18 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 10:39:07 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 10:39:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=d0c8542b |
7 |
|
8 |
gcc-config: add facts around tool names |
9 |
|
10 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
11 |
|
12 |
gcc-config | 23 +++++++++++++++++++++++ |
13 |
1 file changed, 23 insertions(+) |
14 |
|
15 |
diff --git a/gcc-config b/gcc-config |
16 |
index 95d2632..87f466c 100755 |
17 |
--- a/gcc-config |
18 |
+++ b/gcc-config |
19 |
@@ -235,6 +235,29 @@ update_wrappers() { |
20 |
# for new functionality (like a version bump). |
21 |
local x CTARGET=$1 |
22 |
|
23 |
+ # Facts on gcc's private binary dir contents: |
24 |
+ # |
25 |
+ # Native directory looks like: |
26 |
+ # /usr/x86_64-pc-linux-gnu/gcc-bin/11.0.0 |
27 |
+ # Contents looks like: |
28 |
+ # - 'foo' ('gcc', 'c++', 'gcc-ar', 'lto-dump') |
29 |
+ # - 'foo-${v}' (go-11, gofmt-11) |
30 |
+ # - ${CTARGET}-foo (${CTARGET}-gcc |
31 |
+ # |
32 |
+ # Not each 'foo' has it's ${CTARGET}-foo match. |
33 |
+ # Examples are: |
34 |
+ # - lto-dump, gcov-dump, gcov-tool (no ${CTARGET}-lto-dump equvalent) |
35 |
+ # - go-${MAJOR}, gofmt-${MAJOR} (no ${CTARGET}-go-${MAJOR} equivalent) |
36 |
+ # - ${CTARGET}-gcc-11.0.0 (no gcc-11.0.0 equivalent) |
37 |
+ # TODO: is it a gcc or toolchain.eclass bug? |
38 |
+ # |
39 |
+ # Cross directory looks liks: |
40 |
+ # /usr/x86_64-pc-linux-gnu/ia64-unknown-linux-gnu/gcc-bin/10.1.0 |
41 |
+ # Contents look like: |
42 |
+ # - ${CTARGET}-foo (${CTARGET}-gcc |
43 |
+ # |
44 |
+ # Every tool is prefixed. |
45 |
+ |
46 |
# Use the old dir to see what we wrapped up previously. |
47 |
local old_wrappers=( $( |
48 |
[[ -n ${OLD_GCC_PATH} ]] || exit 1 |