Skip to content

Commit 8ce7579

Browse files
vtjnashKristofferC
authored andcommitted
disable compiling for typeinf world during incremental compile (#60079)
We cannot store or load results for this world, so recompiling the package a second time for that world is rather pointless. (cherry picked from commit 36ea5ce)
1 parent 48c0e38 commit 8ce7579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aotcompile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ void *jl_create_native_impl(LLVMOrcThreadSafeModuleRef llvmmod, int trim, int ex
708708
fargs[1] = (jl_value_t*)worlds;
709709
jl_array_data(worlds, size_t)[0] = jl_typeinf_world;
710710
int compiler_world = 1;
711-
if (trim || jl_array_data(worlds, size_t)[0] == 0)
711+
if (trim || jl_array_data(worlds, size_t)[0] == 0 || external_linkage)
712712
compiler_world = 0;
713713
jl_array_data(worlds, size_t)[compiler_world] = world; // might overwrite previous
714714
worlds->dimsize[0] = 1 + compiler_world;

0 commit comments

Comments
 (0)