@@ -14,7 +14,7 @@ pub fn get(
14
14
target : Option < & str > ,
15
15
extra_env : & FxHashMap < String , String > ,
16
16
) -> anyhow:: Result < Vec < String > > {
17
- let _p = tracing:: info_span!( "target_triple ::get" ) . entered ( ) ;
17
+ let _p = tracing:: info_span!( "target_tuple ::get" ) . entered ( ) ;
18
18
if let Some ( target) = target {
19
19
return Ok ( vec ! [ target. to_owned( ) ] ) ;
20
20
}
@@ -28,10 +28,10 @@ pub fn get(
28
28
}
29
29
QueryConfig :: Rustc ( sysroot, current_dir) => ( sysroot, current_dir) ,
30
30
} ;
31
- rustc_discover_host_triple ( extra_env, sysroot, current_dir) . map ( |it| vec ! [ it] )
31
+ rustc_discover_host_tuple ( extra_env, sysroot, current_dir) . map ( |it| vec ! [ it] )
32
32
}
33
33
34
- fn rustc_discover_host_triple (
34
+ fn rustc_discover_host_tuple (
35
35
extra_env : & FxHashMap < String , String > ,
36
36
sysroot : & Sysroot ,
37
37
current_dir : & Path ,
@@ -60,14 +60,14 @@ fn cargo_config_build_target(
60
60
cmd. envs ( extra_env) ;
61
61
cmd. current_dir ( cargo_toml. parent ( ) ) . env ( "RUSTC_BOOTSTRAP" , "1" ) ;
62
62
cmd. args ( [ "-Z" , "unstable-options" , "config" , "get" , "build.target" ] ) ;
63
- // if successful we receive `build.target = "target-triple "`
63
+ // if successful we receive `build.target = "target-tuple "`
64
64
// or `build.target = ["<target 1>", ..]`
65
65
// this might be `error: config value `build.target` is not set` in which case we
66
66
// don't wanna log the error
67
67
utf8_stdout ( & mut cmd) . and_then ( parse_output_cargo_config_build_target) . ok ( )
68
68
}
69
69
70
- // Parses `"build.target = [target-triple , target-triple , ...]"` or `"build.target = "target-triple "`
70
+ // Parses `"build.target = [target-tuple , target-tuple , ...]"` or `"build.target = "target-tuple "`
71
71
fn parse_output_cargo_config_build_target ( stdout : String ) -> anyhow:: Result < Vec < String > > {
72
72
let trimmed = stdout. trim_start_matches ( "build.target = " ) . trim_matches ( '"' ) ;
73
73
0 commit comments