Skip to content

Commit 641f6ca

Browse files
committed
Set partition function
1 parent 4aaa4dd commit 641f6ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jitlayers.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,10 @@ JuliaOJIT::JuliaOJIT()
10731073
});
10741074
#endif
10751075

1076+
#if defined(JL_COMPILE_ON_DEMAND) && !defined(JL_USE_JITLINK)
1077+
CODLayer.setPartitionFunction(CODLayerT::compileWholeModule);
1078+
#endif
1079+
10761080
// Make sure SectionMemoryManager::getSymbolAddressInProcess can resolve
10771081
// symbols in the program as well. The nullptr argument to the function
10781082
// tells DynamicLibrary to load the program, not a library.

0 commit comments

Comments
 (0)