Skip to content

Commit 9d6adb6

Browse files
kxxtjieyouxu
andauthored
Update compiler/rustc_codegen_llvm/src/context.rs
Co-authored-by: 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>
1 parent 66bdd95 commit 9d6adb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_llvm/src/context.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ pub unsafe fn create_module<'ll>(
328328
);
329329

330330
// Emit RISC-V specific target-abi metadata
331+
// to workaround lld as the LTO plugin not
332+
// correctly setting target-abi for the LTO object
331333
// FIXME: https://github.com/llvm/llvm-project/issues/50591
332334
// If llvm_abiname is empty, emit nothing.
333335
if matches!(sess.target.arch.as_ref(), "riscv32" | "riscv64" | "riscv128")

0 commit comments

Comments
 (0)