@@ -347,8 +347,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
347
347
print_state (" step1" => " F$n_step1 " )
348
348
return :ok
349
349
end
350
- Base. errormonitor (step1)
351
- ! PARALLEL_PRECOMPILATION && wait (step1)
350
+ PARALLEL_PRECOMPILATION ? bind (statements_step1, step1) : wait (step1)
352
351
353
352
# Create a staging area where all the loaded packages are available
354
353
PrecompileStagingArea = Module ()
@@ -362,7 +361,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
362
361
# Make statements unique
363
362
statements = Set {String} ()
364
363
# Execute the precompile statements
365
- for sts in [statements_step1,], statement in sts
364
+ for statement in statements_step1
366
365
# Main should be completely clean
367
366
occursin (" Main." , statement) && continue
368
367
Base. in! (statement, statements) && continue
@@ -398,6 +397,7 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
398
397
println ()
399
398
# Seems like a reasonable number right now, adjust as needed
400
399
# comment out if debugging script
400
+ have_repl = false
401
401
n_succeeded > (have_repl ? 650 : 90 ) || @warn " Only $n_succeeded precompile statements"
402
402
403
403
fetch (step1) == :ok || throw (" Step 1 of collecting precompiles failed." )
@@ -408,7 +408,6 @@ generate_precompile_statements() = try # Make sure `ansi_enablecursor` is printe
408
408
finally
409
409
fancyprint && print (ansi_enablecursor)
410
410
GC. gc (true ); GC. gc (false ); # reduce memory footprint
411
- return
412
411
end
413
412
414
413
generate_precompile_statements ()
0 commit comments