Skip to content

Commit

Permalink
make precompile workload relocatable (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Feb 22, 2024
1 parent 2dd891a commit 05f9ec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Downloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ end
# Precompile
let
d = Downloader()
download("file://" * @__FILE__; downloader=d)
f = mktemp()[1]
download("file://" * f; downloader=d)
precompile(Tuple{typeof(Downloads.download), String, String})
precompile(Tuple{typeof(Downloads.Curl.status_2xx_ok), Int64})
end
Expand Down

0 comments on commit 05f9ec2

Please sign in to comment.