Skip to content

Commit

Permalink
Fix support for new flint library version (#1716)
Browse files Browse the repository at this point in the history
Broken by #1691
  • Loading branch information
yuyichao authored Apr 16, 2024
1 parent 5fac404 commit 9c52876
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Nemo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ const eigenvalues = eigvals # alternative name for the function from LinearAlgeb
#
###############################################################################

using Arb_jll: libarb
using Antic_jll: libantic
using Calcium_jll: libcalcium
using FLINT_jll: libflint

const pkgdir = realpath(joinpath(dirname(@__DIR__)))
Expand All @@ -218,11 +215,14 @@ end
_ptr = Libdl.dlopen(libflint)
if Libdl.dlsym(_ptr, :_fmpz_mod_vec_set_fmpz_vec_threaded; throw_error = false) !== nothing
const NEW_FLINT = true
libantic = libflint
libarb = libflint
libcalcium = libflint
const libantic = libflint
const libarb = libflint
const libcalcium = libflint
else
const NEW_FLINT = false
using Arb_jll: libarb
using Antic_jll: libantic
using Calcium_jll: libcalcium
end
Libdl.dlclose(_ptr)

Expand Down

0 comments on commit 9c52876

Please sign in to comment.