Skip to content

Commit 0d9e0ef

Browse files
Zentrikmaleadt
andauthored
Switch RISC-V to large model on LLVM 20 (#57865)
Co-authored-by: Tim Besard <[email protected]>
1 parent 16a2bf0 commit 0d9e0ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jitlayers.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,11 +1385,13 @@ namespace {
13851385
#endif
13861386
if (TheTriple.isAArch64())
13871387
codemodel = CodeModel::Small;
1388+
#if JL_LLVM_VERSION < 200000
13881389
else if (TheTriple.isRISCV()) {
1389-
// RISC-V will support large code model in LLVM 21
1390+
// RISC-V only supports large code model from LLVM 20
13901391
// https://github.com/llvm/llvm-project/pull/70308
13911392
codemodel = CodeModel::Medium;
13921393
}
1394+
#endif
13931395
// Generate simpler code for JIT
13941396
Reloc::Model relocmodel = Reloc::Static;
13951397
if (TheTriple.isRISCV()) {

0 commit comments

Comments
 (0)