diff options
| author | kxxt <rsworktech@outlook.com> | 2024-01-28 18:38:41 +0800 |
|---|---|---|
| committer | kxxt <rsworktech@outlook.com> | 2024-04-09 05:25:51 +0200 |
| commit | f19c48e7a83ad146f461adfdf1b4288eabbecbc8 (patch) | |
| tree | 2e75cc3d75d9ec95bd6c563297f7840146ddefc8 /compiler/rustc_codegen_llvm/src/back | |
| parent | f65f84feb0c299ba926f57b998f03f61d3382464 (diff) | |
| download | rust-f19c48e7a83ad146f461adfdf1b4288eabbecbc8.tar.gz rust-f19c48e7a83ad146f461adfdf1b4288eabbecbc8.zip | |
Set target-abi module flag for RISC-V targets
Fixes cross-language LTO on RISC-V targets (Fixes #121924)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/back/lto.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/lto.rs b/compiler/rustc_codegen_llvm/src/back/lto.rs index 06a681c24e6..e61af863dc0 100644 --- a/compiler/rustc_codegen_llvm/src/back/lto.rs +++ b/compiler/rustc_codegen_llvm/src/back/lto.rs @@ -608,7 +608,7 @@ pub(crate) fn run_pass_manager( "LTOPostLink".as_ptr().cast(), 11, ) { - llvm::LLVMRustAddModuleFlag( + llvm::LLVMRustAddModuleFlagU32( module.module_llvm.llmod(), llvm::LLVMModFlagBehavior::Error, c"LTOPostLink".as_ptr().cast(), |
