Skip to content

Commit f67725b

Browse files
authored
Use SuiteSparse_jll for LibSuiteSparse.jl (#378)
1 parent 53179e1 commit f67725b

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
88
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
99
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
10+
SuiteSparse_jll = "bea87d4a-7f5b-5778-9afe-8cc45184846c"
1011

1112
[compat]
1213

src/solvers/LibSuiteSparse.jl

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
module LibSuiteSparse
22

3-
# using SuiteSparse_jll (move to this when stdlibs have full support for jlls)
4-
const libumfpack = :libumfpack
5-
const libcholmod = :libcholmod
6-
const libspqr = :libspqr
7-
8-
# Special treatment for Win64 since Clong is 32-bit on Win64
9-
# LONG_MAX is used everywhere, except on Win64
10-
# See discussion in https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/master/SuiteSparse_config/SuiteSparse_config.h
11-
# if Sys.iswindows() && Sys.ARCH === :x86_64
12-
# const __int64 = Clonglong
13-
# const _I64_MAX = typemax(Clonglong)
14-
# else
15-
# const LONG_MAX = typemax(Clong)
16-
# end
3+
using SuiteSparse_jll
174

185
if Sys.WORD_SIZE == 64
196
const SuiteSparse_long = Clonglong

0 commit comments

Comments
 (0)