Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Apr 5, 2024
1 parent f8ddded commit a380337
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1484,12 +1484,6 @@ function run_extension_callbacks(pkgid::PkgId)
extids = pop!(EXT_DORMITORY, pkgid, nothing)
extids === nothing && return
for extid in extids
if in(extid.id, precompilation_stack)
@warn """
Dependency cycle detected in extension precompilation: $(precompilation_stack_list()) > $(extid.id.name)
Loading $(extid.id.name) here will likely fail.
"""
end
if extid.ntriggers > 0
# indicate pkgid is loaded
extid.ntriggers -= 1
Expand All @@ -1504,6 +1498,12 @@ function run_extension_callbacks(pkgid::PkgId)
if extid.ntriggers == 0
# actually load extid, now that all dependencies are met,
# and record the result
if in(extid.id, precompilation_stack)
@warn """
Dependency cycle detected in extension precompilation: $(precompilation_stack_list()) > $(extid.id.name)
Loading $(extid.id.name) here will likely fail.
"""
end
succeeded = succeeded && run_extension_callbacks(extid)
succeeded || push!(EXT_DORMITORY_FAILED, extid)
end
Expand Down

0 comments on commit a380337

Please sign in to comment.