diff options
| author | bors <bors@rust-lang.org> | 2021-05-12 08:38:03 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-12 08:38:03 +0000 | 
| commit | ac923d94f86a6f7c881ecbedcd0a68d7986a35bd (patch) | |
| tree | b6e833aafaa51f98d96634dd6f5657de2a23e9ea /compiler/rustc_codegen_cranelift | |
| parent | c1e7e361f7cddd1fe9b3bfef71a6539d2570e4fb (diff) | |
| parent | 163b4801e72a11803a6dcfece2099b11e5a9be76 (diff) | |
| download | rust-ac923d94f86a6f7c881ecbedcd0a68d7986a35bd.tar.gz rust-ac923d94f86a6f7c881ecbedcd0a68d7986a35bd.zip  | |
Auto merge of #83610 - bjorn3:driver_cleanup, r=cjgillot
rustc_driver cleanup Best reviewed one commit at a time.
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/driver/aot.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/lib.rs | 2 | 
2 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/driver/aot.rs b/compiler/rustc_codegen_cranelift/src/driver/aot.rs index 9c5cd53d866..e5f06551bb6 100644 --- a/compiler/rustc_codegen_cranelift/src/driver/aot.rs +++ b/compiler/rustc_codegen_cranelift/src/driver/aot.rs @@ -298,7 +298,7 @@ pub(crate) fn run_aot( metadata_module, metadata, windows_subsystem, - linker_info: LinkerInfo::new(tcx), + linker_info: LinkerInfo::new(tcx, crate::target_triple(tcx.sess).to_string()), crate_info: CrateInfo::new(tcx), }, work_products, diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs index 32f40395702..4271f695f91 100644 --- a/compiler/rustc_codegen_cranelift/src/lib.rs +++ b/compiler/rustc_codegen_cranelift/src/lib.rs @@ -218,13 +218,11 @@ impl CodegenBackend for CraneliftCodegenBackend { ) -> Result<(), ErrorReported> { use rustc_codegen_ssa::back::link::link_binary; - let target_cpu = crate::target_triple(sess).to_string(); link_binary::<crate::archive::ArArchiveBuilder<'_>>( sess, &codegen_results, outputs, &codegen_results.crate_name.as_str(), - &target_cpu, ); Ok(())  | 
