Skip to content
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

Show methods for LBTConfig and LBTLibraryInfo #40357

Merged
merged 4 commits into from
Apr 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add interface information to LBTConfig printing
  • Loading branch information
carstenbauer committed Apr 5, 2021
commit 8e84a70d63860b249277bfa144f0923146902342
14 changes: 11 additions & 3 deletions stdlib/LinearAlgebra/src/lbt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,18 @@ end
function Base.show(io::IO, mime::MIME{Symbol("text/plain")}, lbt::LBTConfig)
summary(io, lbt); println(io)
println(io, "Libraries: ")
for l in lbt.loaded_libs[1:end-1]
println(io, "├", basename(l.libname))
for (i,l) in enumerate(lbt.loaded_libs)
char = i == length(lbt.loaded_libs) ? "└" : "├"
interface_str = if l.interface == :ilp64
"ILP64"
elseif l.interface == :lp64
" LP64"
else
"UNKWN"
carstenbauer marked this conversation as resolved.
Show resolved Hide resolved
end
print(io, char, " [", interface_str,"] ", basename(l.libname))
i !== length(lbt.loaded_libs) && println()
end
print(io, "└ ", basename(lbt.loaded_libs[end].libname))
end

function lbt_get_config()
Expand Down