Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/iwasm/compilation/aot_llvm_extra2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,13 @@ LLVMCreateTargetMachineWithOpts(LLVMTargetRef ctarget, const char *triple,
auto ol = convert(opt_level);
bool jit;
auto cm = convert(code_model, &jit);
#if LLVM_VERSION_MAJOR >= 21
auto targetmachine = target->createTargetMachine(
llvm::Triple(triple), cpu, features, opts, rm, cm, ol, jit);
#else
auto targetmachine = target->createTargetMachine(triple, cpu, features,
opts, rm, cm, ol, jit);
#endif
#if LLVM_VERSION_MAJOR >= 18
// always place data in normal data section.
//
Expand Down
Loading