-nightly-2020-10-15
+nightly-2020-10-16
sess,
dst: output.to_path_buf(),
lib_search_paths: archive_search_paths(sess),
- use_gnu_style_archive: sess.target.target.options.archive_format == "gnu",
+ use_gnu_style_archive: sess.target.options.archive_format == "gnu",
// FIXME fix builtin ranlib on macOS
- no_builtin_ranlib: sess.target.target.options.is_like_osx,
+ no_builtin_ranlib: sess.target.options.is_like_osx,
src_archives,
entries,
impl<'tcx, M: Module> HasTargetSpec for FunctionCx<'_, 'tcx, M> {
fn target_spec(&self) -> &Target {
- &self.tcx.sess.target.target
+ &self.tcx.sess.target
}
}
// TODO: this should be configurable
// macOS doesn't seem to support DWARF > 3
// 5 version is required for md5 file hash
- version: if tcx.sess.target.target.options.is_like_osx {
+ version: if tcx.sess.target.options.is_like_osx {
3
} else {
// FIXME change to version 5 once the gdb and lldb shipping with the latest debian
}
if cfg!(not(feature = "inline_asm"))
- || tcx.sess.target.target.options.is_like_osx
- || tcx.sess.target.target.options.is_like_windows
+ || tcx.sess.target.options.is_like_osx
+ || tcx.sess.target.options.is_like_windows
{
if global_asm.contains("__rust_probestack") {
return;
}
fn target_triple(sess: &Session) -> target_lexicon::Triple {
- sess.target.target.llvm_target.parse().unwrap()
+ sess.target.llvm_target.parse().unwrap()
}
fn build_isa(sess: &Session, enable_pic: bool) -> Box<dyn isa::TargetIsa + 'static> {
product.add_rustc_section(
rustc_middle::middle::exported_symbols::metadata_symbol_name(tcx),
compressed,
- tcx.sess.target.target.options.is_like_osx,
+ tcx.sess.target.options.is_like_osx,
);
metadata
.expect("value location ranges")
});
- let clif_output_dir = tcx
- .output_filenames(LOCAL_CRATE)
- .with_extension("clif");
+ let clif_output_dir = tcx.output_filenames(LOCAL_CRATE).with_extension("clif");
match std::fs::create_dir(&clif_output_dir) {
Ok(()) => {}
} else if stem == "link" || stem == "lld-link" {
LinkerFlavor::Msvc
} else if stem == "lld" || stem == "rust-lld" {
- LinkerFlavor::Lld(sess.target.target.options.lld_flavor)
+ LinkerFlavor::Lld(sess.target.options.lld_flavor)
} else {
// fall back to the value in the target spec
- sess.target.target.linker_flavor
+ sess.target.linker_flavor
};
Some((linker, flavor))
if let Some(ret) = infer_from(
sess,
- sess.target.target.options.linker.clone().map(PathBuf::from),
- Some(sess.target.target.linker_flavor),
+ sess.target.options.linker.clone().map(PathBuf::from),
+ Some(sess.target.linker_flavor),
) {
return ret;
}