Skip to content

Commit 6f32b8e

Browse files
committed
[LibGit2_jll] [LibSSH2_jll] Load OpenSSL_jll only when necessary
1 parent 6384bc5 commit 6f32b8e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

stdlib/LibGit2_jll/src/LibGit2_jll.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/LibGit2_jll.jl
44

55
baremodule LibGit2_jll
6-
using Base, Libdl, OpenSSL_jll, LibSSH2_jll
6+
using Base, Libdl, LibSSH2_jll
7+
if !(Sys.iswindows() || Sys.isapple())
8+
# On Windows and macOS we use system SSL/crypto libraries
9+
using OpenSSL_jll
10+
end
711

812
const PATH_list = String[]
913
const LIBPATH_list = String[]

stdlib/LibSSH2_jll/src/LibSSH2_jll.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/LibSSH2_jll.jl
44

55
baremodule LibSSH2_jll
6-
using Base, Libdl, OpenSSL_jll
6+
using Base, Libdl
7+
if !Sys.iswindows()
8+
# On Windows we use system SSL/crypto libraries
9+
using OpenSSL_jll
10+
end
711

812
const PATH_list = String[]
913
const LIBPATH_list = String[]

0 commit comments

Comments
 (0)