@@ -26,7 +26,7 @@ use rustc_span::{
26
26
FileName , FileNameDisplayPreference , RealFileName , SourceFileHashAlgorithm , Symbol , sym,
27
27
} ;
28
28
use rustc_target:: spec:: {
29
- FramePointer , LinkSelfContainedComponents , LinkerFeatures , SplitDebuginfo , Target , TargetTriple ,
29
+ FramePointer , LinkSelfContainedComponents , LinkerFeatures , SplitDebuginfo , Target , TargetTuple ,
30
30
} ;
31
31
use tracing:: debug;
32
32
@@ -1116,7 +1116,7 @@ bitflags::bitflags! {
1116
1116
}
1117
1117
}
1118
1118
1119
- pub fn host_triple ( ) -> & ' static str {
1119
+ pub fn host_tuple ( ) -> & ' static str {
1120
1120
// Get the host triple out of the build environment. This ensures that our
1121
1121
// idea of the host triple is the same as for the set of libraries we've
1122
1122
// actually built. We can't just take LLVM's host triple because they
@@ -1158,7 +1158,7 @@ impl Default for Options {
1158
1158
output_types : OutputTypes ( BTreeMap :: new ( ) ) ,
1159
1159
search_paths : vec ! [ ] ,
1160
1160
maybe_sysroot : None ,
1161
- target_triple : TargetTriple :: from_triple ( host_triple ( ) ) ,
1161
+ target_triple : TargetTuple :: from_tuple ( host_tuple ( ) ) ,
1162
1162
test : false ,
1163
1163
incremental : None ,
1164
1164
untracked_state_hash : Default :: default ( ) ,
@@ -1354,7 +1354,7 @@ pub fn build_target_config(early_dcx: &EarlyDiagCtxt, opts: &Options, sysroot: &
1354
1354
// rust-lang/compiler-team#695. Warn unconditionally on usage to
1355
1355
// raise awareness of the renaming. This code will be deleted in
1356
1356
// October 2024.
1357
- if opts. target_triple . triple ( ) == "wasm32-wasi" {
1357
+ if opts. target_triple . tuple ( ) == "wasm32-wasi" {
1358
1358
early_dcx. early_warn (
1359
1359
"the `wasm32-wasi` target is being renamed to \
1360
1360
`wasm32-wasip1` and the `wasm32-wasi` target will be \
@@ -2030,16 +2030,16 @@ fn collect_print_requests(
2030
2030
prints
2031
2031
}
2032
2032
2033
- pub fn parse_target_triple ( early_dcx : & EarlyDiagCtxt , matches : & getopts:: Matches ) -> TargetTriple {
2033
+ pub fn parse_target_triple ( early_dcx : & EarlyDiagCtxt , matches : & getopts:: Matches ) -> TargetTuple {
2034
2034
match matches. opt_str ( "target" ) {
2035
2035
Some ( target) if target. ends_with ( ".json" ) => {
2036
2036
let path = Path :: new ( & target) ;
2037
- TargetTriple :: from_path ( path) . unwrap_or_else ( |_| {
2037
+ TargetTuple :: from_path ( path) . unwrap_or_else ( |_| {
2038
2038
early_dcx. early_fatal ( format ! ( "target file {path:?} does not exist" ) )
2039
2039
} )
2040
2040
}
2041
- Some ( target) => TargetTriple :: TargetTriple ( target) ,
2042
- _ => TargetTriple :: from_triple ( host_triple ( ) ) ,
2041
+ Some ( target) => TargetTuple :: TargetTuple ( target) ,
2042
+ _ => TargetTuple :: from_tuple ( host_tuple ( ) ) ,
2043
2043
}
2044
2044
}
2045
2045
@@ -3017,7 +3017,7 @@ pub(crate) mod dep_tracking {
3017
3017
use rustc_span:: edition:: Edition ;
3018
3018
use rustc_target:: spec:: {
3019
3019
CodeModel , FramePointer , MergeFunctions , OnBrokenPipe , PanicStrategy , RelocModel ,
3020
- RelroLevel , SanitizerSet , SplitDebuginfo , StackProtector , SymbolVisibility , TargetTriple ,
3020
+ RelroLevel , SanitizerSet , SplitDebuginfo , StackProtector , SymbolVisibility , TargetTuple ,
3021
3021
TlsModel , WasmCAbi ,
3022
3022
} ;
3023
3023
@@ -3102,7 +3102,7 @@ pub(crate) mod dep_tracking {
3102
3102
SanitizerSet ,
3103
3103
CFGuard ,
3104
3104
CFProtection ,
3105
- TargetTriple ,
3105
+ TargetTuple ,
3106
3106
Edition ,
3107
3107
LinkerPluginLto ,
3108
3108
ResolveDocLinks ,
0 commit comments