Skip to content

Commit b3e27a7

Browse files
only run workload if precompiling pkgimages
1 parent 9f82f5b commit b3e27a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HTTP.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ function Base.parse(::Type{T}, str::AbstractString)::T where T <: Message
631631
return m
632632
end
633633

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

0 commit comments

Comments
 (0)