Skip to content

Commit 3a04f0e

Browse files
committed
Simplify.
1 parent dfdb4a6 commit 3a04f0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jitlayers.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,13 +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-
#if JL_LLVM_VERSION >= 200000
1390-
codemodel = CodeModel::Large;
1391-
#else
1390+
// RISC-V only supports large code model in LLVM 20
1391+
// https://github.com/llvm/llvm-project/pull/70308
13921392
codemodel = CodeModel::Medium;
1393-
#endif
13941393
}
1394+
#endif
13951395
// Generate simpler code for JIT
13961396
Reloc::Model relocmodel = Reloc::Static;
13971397
if (TheTriple.isRISCV()) {

0 commit comments

Comments
 (0)