Skip to content

Commit

Permalink
Using .dlext directly from Libdl rather than Base.Libc (#142)
Browse files Browse the repository at this point in the history
This line broke for me when using ClarabelRs on Julia 1.11.

In previous releases of Julia it seems at you could dlext from Base.Libc.dlext, but that is not the case on 1.11 (at least on macOS). Since Libdl is loaded here one can instead get dlext from Libdl.dlext.
  • Loading branch information
mipals authored Jan 6, 2025
1 parent 720ca9e commit 5cf3c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/julia/ClarabelRs/src/ClarabelRs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module ClarabelRs
# > cargo build --release --features julia
global libpath = joinpath(@__DIR__,
"../../../../target/release/",
"libclarabel." * Base.Libc.dlext
"libclarabel." * Libdl.dlext
)
global librust = Libdl.dlopen(libpath)
end
Expand Down

0 comments on commit 5cf3c76

Please sign in to comment.