-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Convert remaining JLL stdlibs to LazyLibraries #58444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
using Test, Libdl, GMP_jll | ||
|
||
@testset "GMP_jll" begin | ||
vn = VersionNumber(unsafe_string(unsafe_load(cglobal((:__gmp_version, libgmp), Ptr{Cchar})))) | ||
vn = VersionNumber(unsafe_string(unsafe_load(cglobal(dlsym(libgmp, :__gmp_version), Ptr{Cchar})))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should/could cglobal be taught how to handle a LazyLibrary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It could, the most annoying thing is just that |
||
@test vn == v"6.3.0" | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
# This file is a part of Julia. License is MIT: https://julialang.org/license | ||
|
||
using Test, Libdl | ||
using LLVMLibUnwind_jll: llvmlibunwind_handle | ||
|
||
using Test, Libdl, LLVMLibUnwind_jll | ||
@testset "LLVMLibUnwind_jll" begin | ||
if Sys.isapple() | ||
@test dlsym(llvmlibunwind_handle, :unw_getcontext; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind_handle, :unw_init_local; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind_handle, :unw_init_local_dwarf; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind_handle, :unw_step; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind_handle, :unw_get_reg; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind_handle, :unw_set_reg; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind_handle, :unw_resume; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind, :unw_getcontext; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind, :unw_init_local; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind, :unw_init_local_dwarf; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind, :unw_step; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind, :unw_get_reg; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind, :unw_set_reg; throw_error=false) !== nothing | ||
@test dlsym(llvmlibunwind, :unw_resume; throw_error=false) !== nothing | ||
end | ||
end |
Uh oh!
There was an error while loading. Please reload this page.