From: | Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] [PATCH] toolchain-funcs.eclass: new function tc-ld-force-bfd() | ||
Date: | Thu, 21 Jan 2021 07:50:13 | ||
Message-Id: | CALaCa4yQGjqY33xaEjJwVhu+sSEVNvq_Hpg4dc9e4-EjYizeFw@mail.gmail.com | ||
In Reply to: | Re: [gentoo-dev] [PATCH] toolchain-funcs.eclass: new function tc-ld-force-bfd() by Mike Gilbert |
1 | Maybe one generic function (called e.g. tc-set-linker) whose arguments |
2 | are a preference-ordered list of supported linkers? |
3 | If currently used linker is not in the specified list, then this |
4 | function would force using first found linker from that list. |
5 | |
6 | Forcing bfd only: |
7 | tc-set-linker bfd |
8 | |
9 | Forcing gold only: |
10 | tc-set-linker gold |
11 | |
12 | Forcing lld only: |
13 | tc-set-linker lld |
14 | |
15 | Forcing bfd or gold (with bfd preferred if both are available): |
16 | tc-set-linker bfd gold |
17 | |
18 | Forcing bfd or lld (with bfd preferred if both are available): |
19 | tc-set-linker bfd lld |
20 | |
21 | Forcing lld or bfd (with lld preferred if both are available): |
22 | tc-set-linker lld bfd |