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};
· · ·
194 }
195
196▶ parse_error_type = "LLD flavor";
197}
198
· · ·
200 /// At this point the target's reference linker flavor doesn't yet exist and we need to infer
201 /// it. The inference always succeeds and gives some result, and we don't report any flavor
202▶ /// incompatibility errors for json target specs. The CLI flavor is used as the main source
203 /// of truth, other flags are used in case of ambiguities.
204 fn from_cli_json(cli: LinkerFlavorCli, lld_flavor: LldFlavor, is_gnu: bool) -> LinkerFlavor {
· · ·
629impl LinkSelfContainedDefault {
630 /// Returns whether the target spec has self-contained linking explicitly disabled. Used to emit
631▶ /// errors if the user then enables it on the CLI.
632 pub fn is_disabled(self) -> bool {
633 self == LinkSelfContainedDefault::False
+ 26 more matches in this file