Skip to content

Commit

Permalink
Fix Requires
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored Aug 8, 2023
1 parent 26b4169 commit 3a8b304
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Krylov.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module Krylov

using LinearAlgebra, SparseArrays, Printf

@static if !isdefined(Base, :get_extension)
using Requires
end

include("krylov_utils.jl")
include("krylov_stats.jl")
include("krylov_solvers.jl")
Expand Down Expand Up @@ -53,10 +57,8 @@ include("craigmr.jl")

include("krylov_solve.jl")

# This symbol is only defined on Julia versions that support extensions
@static if !isdefined(Base, :get_extension)
using Requires
function __init__()
function __init__()
@static if !isdefined(Base, :get_extension)
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" include("../ext/KrylovStaticArraysExt.jl")
end
end
Expand Down

0 comments on commit 3a8b304

Please sign in to comment.