MacrosΒ§
- generate_
arg_ πmethods
StructsΒ§
- AixLinker π
- Linker for AIX.
- BpfLinker π
- EmLinker π
- GccLinker π
- L4Bender π
- Linker shepherd script for L4Re (Fiasco)
- Llbc
Linker π - The
self-containedLLVM bitcode linker - Msvc
Linker π - WasmLd π
TraitsΒ§
- Linker π
- Linker abstraction used by
back::linkto build up the command to invoke a linker.
FunctionsΒ§
- cc_args π
- Arguments for the cc wrapper specifically. Check that itβs indeed a cc wrapper and pass verbatim.
- convert_
link_ πargs_ to_ cc_ args - Add underlying linker arguments to C compiler command, by wrapping them in
-Wlor-Xlinker. - disable_
localization π - Disables non-English messages from localized linkers. Such messages may cause issues with text encoding on Windows (#35785) and prevent inspection of linker output in case of errors, which we occasionally do. This should be acceptable because other messages from rustc are in English anyway, and may also be desirable to improve searchability of the linker diagnostics.
- exported_
symbols π - exported_
symbols_ πfor_ non_ proc_ macro - exported_
symbols_ πfor_ proc_ macro_ crate - for_
each_ πexported_ symbols_ include_ dep - get_
linker π - The third parameter is for env vars, used on windows to set up the path for MSVC to find its DLLs, and gcc to find its bundled toolchain
- link_
args π - Arguments for the underlying linker.
Add options to pass them through cc wrapper if
Linkeris a cc wrapper. - link_
or_ πcc_ args - Arguments supported by both underlying linker and cc wrapper, pass verbatim.
- linked_
symbols π - verbatim_
args π - Just pass the arguments to the linker as is. It is assumed that they are correctly prepared in advance.