Skip to content

Commit a418254

Browse files
Merge pull request #60 from SciML/weakdep
Fix loading of weak dep
2 parents ad3ae08 + 16ee473 commit a418254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/PreallocationToolsReverseDiffExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module PreallocationToolsReverseDiffExt
22

33
using PreallocationTools
4-
import ReverseDiff
4+
isdefined(Base, :get_extension) ? (import ReverseDiff) : (import ..ReverseDiff)
55

66
# PreallocationTools https://github.com/SciML/PreallocationTools.jl/issues/39
77
function Base.getindex(b::PreallocationTools.LazyBufferCache, u::ReverseDiff.TrackedArray)

0 commit comments

Comments
 (0)