Skip to content

Commit

Permalink
only run workload if precompiling pkgimages
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Nov 22, 2024
1 parent 9f82f5b commit b3e27a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HTTP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ function Base.parse(::Type{T}, str::AbstractString)::T where T <: Message
return m
end

# only run if precompiling
if ccall(:jl_generating_output, Cint, ()) == 1
# only run if precompiling pkgimages
if VERSION >= v"1.9.0-0" && Base.JLOptions().use_pkgimages != 0 && ccall(:jl_generating_output, Cint, ()) == 1
include("precompile.jl")
end

Expand Down

0 comments on commit b3e27a7

Please sign in to comment.