Skip to content

Commit 974bfbf

Browse files
authored
Only define rules for SpecialFunctions if needed
1 parent 6eb1027 commit 974bfbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ChainRules.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ function __init__()
5757
end
5858

5959
@require SpecialFunctions="276daf66-3868-5448-9aa4-cd146d93841b" begin
60-
include("rulesets/packages/SpecialFunctions.jl")
60+
if !isdefined(SpecialFunctions, :ChainRulesCore)
61+
include("rulesets/packages/SpecialFunctions.jl")
62+
end
6163
end
6264
end
6365

0 commit comments

Comments
 (0)