@@ -347,8 +347,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
347347 print_state (" step1" => " F$n_step1 " )
348348 return :ok
349349 end
350- Base. errormonitor (step1)
351- ! PARALLEL_PRECOMPILATION && wait (step1)
350+ PARALLEL_PRECOMPILATION ? bind (statements_step1, step1) : wait (step1)
352351
353352 # Create a staging area where all the loaded packages are available
354353 PrecompileStagingArea = Module ()
@@ -362,7 +361,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
362361 # Make statements unique
363362 statements = Set {String} ()
364363 # Execute the precompile statements
365- for sts in [statements_step1,], statement in sts
364+ for statement in statements_step1
366365 # Main should be completely clean
367366 occursin (" Main." , statement) && continue
368367 Base. in! (statement, statements) && continue
@@ -398,6 +397,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
398397 println ()
399398 # Seems like a reasonable number right now, adjust as needed
400399 # 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,7 +408,6 @@ 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
412411end
413412
414413generate_precompile_statements ()
0 commit comments