@@ -347,7 +347,8 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
347347 print_state (" step1" => " F$n_step1 " )
348348 return :ok
349349 end
350- PARALLEL_PRECOMPILATION ? bind (statements_step1, step1) : wait (step1)
350+ Base. errormonitor (step1)
351+ ! PARALLEL_PRECOMPILATION && wait (step1)
351352
352353 # Create a staging area where all the loaded packages are available
353354 PrecompileStagingArea = Module ()
@@ -361,7 +362,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
361362 # Make statements unique
362363 statements = Set {String} ()
363364 # Execute the precompile statements
364- for statement in statements_step1
365+ for sts in [ statements_step1,], statement in sts
365366 # Main should be completely clean
366367 occursin (" Main." , statement) && continue
367368 Base. in! (statement, statements) && continue
@@ -397,7 +398,6 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
397398 println ()
398399 # Seems like a reasonable number right now, adjust as needed
399400 # comment out if debugging script
400- have_repl = false
401401 n_succeeded > (have_repl ? 650 : 90 ) || @warn " Only $n_succeeded precompile statements"
402402
403403 fetch (step1) == :ok || throw (" Step 1 of collecting precompiles failed." )
@@ -408,6 +408,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
408408finally
409409 fancyprint && print (ansi_enablecursor)
410410 GC. gc (true ); GC. gc (false ); # reduce memory footprint
411+ return
411412end
412413
413414generate_precompile_statements ()
0 commit comments