Skip to content

Commit

Permalink
make dlopening libssp non fatal (#48333)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg authored Jan 22, 2023
1 parent 583aaa3 commit 2949879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ libstdcxx_handle = C_NULL
libstdcxx_path = ""
libgomp_handle = C_NULL
libgomp_path = ""
libssp_handle = C_NULL
libssp_path = ""

if Sys.iswindows()
if arch(HostPlatform()) == "x86_64"
Expand Down Expand Up @@ -64,8 +62,7 @@ function __init__()
global libgomp_handle = dlopen(libgomp)
global libgomp_path = dlpath(libgomp_handle)
@static if libc(HostPlatform()) != "musl"
global libssp_handle = dlopen(libssp)
global libssp_path = dlpath(libssp_handle)
dlopen(libssp; throw_error = false)
end
global artifact_dir = dirname(Sys.BINDIR)
LIBPATH[] = dirname(libgcc_s_path)
Expand Down
5 changes: 1 addition & 4 deletions stdlib/CompilerSupportLibraries_jll/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

using Test, CompilerSupportLibraries_jll, Base.BinaryPlatforms
using Test, CompilerSupportLibraries_jll

@testset "CompilerSupportLibraries_jll" begin
@test isfile(CompilerSupportLibraries_jll.libgcc_s_path)
@test isfile(CompilerSupportLibraries_jll.libgfortran_path)
@test isfile(CompilerSupportLibraries_jll.libstdcxx_path)
@test isfile(CompilerSupportLibraries_jll.libgomp_path)
if libc(HostPlatform()) != "musl"
@test isfile(CompilerSupportLibraries_jll.libssp_path)
end
end

0 comments on commit 2949879

Please sign in to comment.