49use rustc_abi::{
50 Align, CVariadicStatus, CanonAbi, Endian, ExternAbi, Integer, Size, TargetDataLayout,
51▶ TargetDataLayoutError,
52};
53use rustc_data_structures::fx::{FxHashSet, FxIndexSet};
· · ·
54▶use rustc_error_messages::{DiagArgValue, IntoDiagArg, into_diag_arg_using_display};
55use rustc_fs_util::try_canonicalize;
56use rustc_macros::{BlobDecodable, Decodable, Encodable, StableHash};
· · ·
190 }
191
192▶ parse_error_type = "LLD flavor";
193}
194
· · ·
196 /// At this point the target's reference linker flavor doesn't yet exist and we need to infer
197 /// it. The inference always succeeds and gives some result, and we don't report any flavor
198▶ /// incompatibility errors for json target specs. The CLI flavor is used as the main source
199 /// of truth, other flags are used in case of ambiguities.
200 fn from_cli_json(cli: LinkerFlavorCli, lld_flavor: LldFlavor, is_gnu: bool) -> LinkerFlavor {
· · ·
613impl LinkSelfContainedDefault {
614 /// Returns whether the target spec has self-contained linking explicitly disabled. Used to emit
615▶ /// errors if the user then enables it on the CLI.
616 pub fn is_disabled(self) -> bool {
617 self == LinkSelfContainedDefault::False
+ 26 more matches in this file