Skip to content

Commit 4a4ca9c

Browse files
authored
do not intentionally suppress errors in precompile script from being reported or failing the result (#55909)
I was slightly annoying that the build was set up to succeed if this step failed, so I removed the error suppression and fixed up the script slightly
1 parent 00f0a6c commit 4a4ca9c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

contrib/generate_precompile.jl

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

414413
generate_precompile_statements()

0 commit comments

Comments
 (0)