Set target-abi module flag for RISC-V targets
Fixes cross-language LTO on RISC-V targets (Fixes #121924)
This commit is contained in:
parent
f65f84feb0
commit
f19c48e7a8
10 changed files with 115 additions and 21 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue