about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/messages.ftl
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-19 07:27:50 +0000
committerbors <bors@rust-lang.org>2023-07-19 07:27:50 +0000
commit77e24f90f599070af2d8051ef9adad7fe528dd78 (patch)
treed5dc97aa3d249794d5835db939ac309fee5604be /compiler/rustc_codegen_llvm/messages.ftl
parentb657dc555b1ecf837cc4ea471fbae6a731529d55 (diff)
parentc59b82353d70122b59f5bc428be9464f49a99326 (diff)
downloadrust-77e24f90f599070af2d8051ef9adad7fe528dd78.tar.gz
rust-77e24f90f599070af2d8051ef9adad7fe528dd78.zip
Auto merge of #112591 - jfgoog:better-dlltool-diagnostics, r=WaffleLapkin
Better diagnostics for dlltool errors.

When dlltool fails, show the full command that was executed. In particular, llvm-dlltool is not very helpful, printing a generic usage message rather than what actually went wrong, so stdout and stderr aren't of much use when troubleshooting.
Diffstat (limited to 'compiler/rustc_codegen_llvm/messages.ftl')
-rw-r--r--compiler/rustc_codegen_llvm/messages.ftl3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/messages.ftl b/compiler/rustc_codegen_llvm/messages.ftl
index de1622951fe..aed4a8f3c85 100644
--- a/compiler/rustc_codegen_llvm/messages.ftl
+++ b/compiler/rustc_codegen_llvm/messages.ftl
@@ -1,7 +1,8 @@
 codegen_llvm_copy_bitcode = failed to copy bitcode to object file: {$err}
 
 codegen_llvm_dlltool_fail_import_library =
-    Dlltool could not create import library: {$stdout}
+    Dlltool could not create import library with {$dlltool_path} {$dlltool_args}:
+    {$stdout}
     {$stderr}
 
 codegen_llvm_dynamic_linking_with_lto =