@ -33,16 +33,26 @@ These are return values of the `get_id` (Compiler family) and
## Linker ids
These are return values of the `get_linker_id` (Linker family) method in a compiler object.
| Value | Linker family |
| ----- | --------------- |
| ld.bfd | GNU Compiler Collection |
| {ld.bfd,lld} | Clang non-Windows |
| link | MSVC, Clang-cl, clang Windows |
| pgi | Portland/Nvidia PGI |
| {ld.bfd,gold,xild} | Intel compiler non-Windows |
| xilink | Intel-cl Windows |
These are return values of the `get_linker_id` method in a compiler object.
| Value | Linker family |
| ----- | --------------- |
| ld.bfd | The GNU linker |
| ld.gold | The GNU linker |
| lld | The LLVM linker, with the GNU interface |
| link | MSVC linker |
| pgi | Portland/Nvidia PGI |
| lld-link | The LLVM linker, with the MSVC interface |
| xilink | Used with Intel-cl only, MSVC like |
| rlink | The Renesas linker, used with CCrx only |
| armlink | The ARM linker (arm and armclang compilers) |
| optlink | optlink |
| APPLE ld | Apple ld64 |
| solaris | Solaris and illumos |
For languages that don't have separate dynamic linkers such as C# and Java, the
`get_linker_id` will return the compiler name.
## Script environment variables