Skip to content

Commit f418c7c

Browse files
authored
Move up the definition of INCLUDE_SPARSE
1 parent ad68891 commit f418c7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LinearSolve.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ needs_concrete_A(alg::AbstractSolveFunction) = false
3939

4040
# Code
4141

42+
const INCLUDE_SPARSE = Preferences.@load_preference("include_sparse", Base.USE_GPL_LIBS)
43+
4244
include("common.jl")
4345
include("factorization.jl")
4446
include("simplelu.jl")
@@ -48,7 +50,6 @@ include("solve_function.jl")
4850
include("default.jl")
4951
include("init.jl")
5052

51-
const INCLUDE_SPARSE = Preferences.@load_preference("include_sparse", Base.USE_GPL_LIBS)
5253
@static if INCLUDE_SPARSE
5354
include("factorization_sparse.jl")
5455
end

0 commit comments

Comments
 (0)