Skip to content
Merged
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
4 changes: 3 additions & 1 deletion src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1385,11 +1385,13 @@ namespace {
#endif
if (TheTriple.isAArch64())
codemodel = CodeModel::Small;
#if JL_LLVM_VERSION < 200000
else if (TheTriple.isRISCV()) {
// RISC-V will support large code model in LLVM 21
// RISC-V only supports large code model from LLVM 20
// https://github.com/llvm/llvm-project/pull/70308
codemodel = CodeModel::Medium;
}
#endif
// Generate simpler code for JIT
Reloc::Model relocmodel = Reloc::Static;
if (TheTriple.isRISCV()) {
Expand Down