Rename target triple to target tuple in many places in the compiler
This changes the naming to the new naming, used by `--print target-tuple`. It does not change all locations, but many.
This commit is contained in:
parent
77d0b4ddfb
commit
a26450cf81
32 changed files with 167 additions and 168 deletions
|
@ -997,7 +997,7 @@ fn link_natively(
|
|||
{
|
||||
let is_vs_installed = windows_registry::find_vs_version().is_ok();
|
||||
let has_linker = windows_registry::find_tool(
|
||||
sess.opts.target_triple.triple(),
|
||||
sess.opts.target_triple.tuple(),
|
||||
"link.exe",
|
||||
)
|
||||
.is_some();
|
||||
|
@ -1323,10 +1323,8 @@ fn link_sanitizer_runtime(
|
|||
} else {
|
||||
let default_sysroot =
|
||||
filesearch::get_or_default_sysroot().expect("Failed finding sysroot");
|
||||
let default_tlib = filesearch::make_target_lib_path(
|
||||
&default_sysroot,
|
||||
sess.opts.target_triple.triple(),
|
||||
);
|
||||
let default_tlib =
|
||||
filesearch::make_target_lib_path(&default_sysroot, sess.opts.target_triple.tuple());
|
||||
default_tlib
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ pub(crate) fn get_linker<'a>(
|
|||
self_contained: bool,
|
||||
target_cpu: &'a str,
|
||||
) -> Box<dyn Linker + 'a> {
|
||||
let msvc_tool = windows_registry::find_tool(sess.opts.target_triple.triple(), "link.exe");
|
||||
let msvc_tool = windows_registry::find_tool(sess.opts.target_triple.tuple(), "link.exe");
|
||||
|
||||
// If our linker looks like a batch script on Windows then to execute this
|
||||
// we'll need to spawn `cmd` explicitly. This is primarily done to handle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue