about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/back/write.rs
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2018-08-06 11:16:28 +0200
committerMichael Woerister <michaelwoerister@posteo>2018-08-08 13:40:23 +0200
commit3a7005037726263c0beffd0efc3d5d147b2a86b4 (patch)
tree04a46edf3164675a2bcaa21f1e11a5ff2ef8c3d8 /src/librustc_codegen_llvm/back/write.rs
parentb27a161939620626ca5fdcb9f4dd486a6ed1e827 (diff)
downloadrust-3a7005037726263c0beffd0efc3d5d147b2a86b4.tar.gz
rust-3a7005037726263c0beffd0efc3d5d147b2a86b4.zip
Address review comments for #53031 and fix some merge fallout.
Diffstat (limited to 'src/librustc_codegen_llvm/back/write.rs')
-rw-r--r--src/librustc_codegen_llvm/back/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/write.rs b/src/librustc_codegen_llvm/back/write.rs
index 47440d864d5..640e1c1f3d4 100644
--- a/src/librustc_codegen_llvm/back/write.rs
+++ b/src/librustc_codegen_llvm/back/write.rs
@@ -2385,7 +2385,7 @@ fn msvc_imps_needed(tcx: TyCtxt) -> bool {
               tcx.sess.opts.cg.prefer_dynamic));
 
     tcx.sess.target.target.options.is_like_msvc &&
-        tcx.sess.crate_types.borrow().iter().any(|ct| *ct == config::CrateTypeRlib) &&
+        tcx.sess.crate_types.borrow().iter().any(|ct| *ct == config::CrateType::Rlib) &&
     // ThinLTO can't handle this workaround in all cases, so we don't
     // emit the `__imp_` symbols. Instead we make them unnecessary by disallowing
     // dynamic linking when cross-language LTO is enabled.