about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/messages.ftl
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-07-24 12:50:26 +0000
committerbors <bors@rust-lang.org>2025-07-24 12:50:26 +0000
commit5d22242a3a84a55be2f648a94eecff58887547f4 (patch)
treec2e7af778249ed050d6238a0bd49f602ba5913f2 /compiler/rustc_codegen_ssa/messages.ftl
parentfc5af1813307d25a84d633f21e2e53c9376eb547 (diff)
parentdadc4cae501d9fa515a6cd3b7fe546db13b44a7b (diff)
downloadrust-5d22242a3a84a55be2f648a94eecff58887547f4.tar.gz
rust-5d22242a3a84a55be2f648a94eecff58887547f4.zip
Auto merge of #144062 - bjorn3:lto_refactors2, r=davidtwco
Various refactors to the LTO handling code (part 2)

Continuing from https://github.com/rust-lang/rust/pull/143388 this removes a bit of dead code and moves the LTO symbol export calculation from individual backends to cg_ssa.
Diffstat (limited to 'compiler/rustc_codegen_ssa/messages.ftl')
-rw-r--r--compiler/rustc_codegen_ssa/messages.ftl10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/messages.ftl b/compiler/rustc_codegen_ssa/messages.ftl
index c7bd6ffd1f2..a70d0011d16 100644
--- a/compiler/rustc_codegen_ssa/messages.ftl
+++ b/compiler/rustc_codegen_ssa/messages.ftl
@@ -35,6 +35,10 @@ codegen_ssa_dlltool_fail_import_library =
     {$stdout}
     {$stderr}
 
+codegen_ssa_dynamic_linking_with_lto =
+    cannot prefer dynamic linking when performing LTO
+    .note = only 'staticlib', 'bin', and 'cdylib' outputs are supported with LTO
+
 codegen_ssa_error_calling_dlltool =
     Error calling dlltool '{$dlltool_path}': {$error}
 
@@ -191,6 +195,12 @@ codegen_ssa_linker_unsupported_modifier = `as-needed` modifier not supported for
 
 codegen_ssa_linking_failed = linking with `{$linker_path}` failed: {$exit_status}
 
+codegen_ssa_lto_disallowed = lto can only be run for executables, cdylibs and static library outputs
+
+codegen_ssa_lto_dylib = lto cannot be used for `dylib` crate type without `-Zdylib-lto`
+
+codegen_ssa_lto_proc_macro = lto cannot be used for `proc-macro` crate type without `-Zdylib-lto`
+
 codegen_ssa_malformed_cgu_name =
     found malformed codegen unit name `{$user_path}`. codegen units names must always start with the name of the crate (`{$crate_name}` in this case).