Skip to content

Commit

Permalink
Set partition function
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi committed Apr 18, 2022
1 parent a4283e4 commit ffd7c1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jitlayers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,10 @@ JuliaOJIT::JuliaOJIT()
});
#endif

#if defined(JL_COMPILE_ON_DEMAND) && !defined(JL_USE_JITLINK)
CODLayer.setPartitionFunction(CODLayerT::compileWholeModule);
#endif

// Make sure SectionMemoryManager::getSymbolAddressInProcess can resolve
// symbols in the program as well. The nullptr argument to the function
// tells DynamicLibrary to load the program, not a library.
Expand Down

0 comments on commit ffd7c1a

Please sign in to comment.