Skip to content

Commit d65f48a

Browse files
authored
Revert "do not intentionally suppress errors in precompile script from being …"
This reverts commit 4a4ca9c.
1 parent ecf41b1 commit d65f48a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

contrib/generate_precompile.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
408408
finally
409409
fancyprint && print(ansi_enablecursor)
410410
GC.gc(true); GC.gc(false); # reduce memory footprint
411+
return
411412
end
412413

413414
generate_precompile_statements()

0 commit comments

Comments
 (0)