Skip to content

Commit

Permalink
only run precompile workload when generating output
Browse files Browse the repository at this point in the history
otherwise we run code at module load each time.
  • Loading branch information
sjkelly committed Apr 19, 2024
1 parent 05f9ec2 commit a95acc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Downloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function default_downloader!(
end

# Precompile
let
if Base.generating_output()
d = Downloader()
f = mktemp()[1]
download("file://" * f; downloader=d)
Expand Down

0 comments on commit a95acc6

Please sign in to comment.