Skip to content

Commit 101a4c6

Browse files
update windows deps
1 parent 71dae4e commit 101a4c6

File tree

19 files changed

+145
-37
lines changed

19 files changed

+145
-37
lines changed

stdlib/CompilerSupportLibraries_jll/src/CompilerSupportLibraries_jll.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ const libgfortran = LazyLibrary(_libgfortran_path, dependencies=_libgfortran_dep
7676
_libstdcxx_dependencies = LazyLibrary[libgcc_s]
7777
const libstdcxx = LazyLibrary(_libstdcxx_path, dependencies=_libstdcxx_dependencies)
7878

79-
const libgomp = LazyLibrary(_libgomp_path)
79+
if Sys.iswindows()
80+
_libgomp_dependencies = LazyLibrary[libgcc_s]
81+
else
82+
_libgomp_dependencies = LazyLibrary[]
83+
end
84+
const libgomp = LazyLibrary(_libgomp_path, dependencies=_libgomp_dependencies)
8085

8186
# Some installations (such as those from-source) may not have `libssp`
8287
# So let's do a compile-time check to see if we've got it.

stdlib/LibCURL_jll/Project.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
33
version = "8.12.1+1"
44

55
[deps]
6+
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
7+
CompilerSupportLibraries_jll = "e66e0078-7015-5450-92f7-15fbd957f2ae"
68
LibSSH2_jll = "29816b5a-b9ab-546f-933c-edad1886dfa8"
7-
nghttp2_jll = "8e850ede-7688-5339-a07c-302acd2aaf8d"
9+
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
810
OpenSSL_jll = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
911
Zlib_jll = "83775a58-1f1d-513f-b197-d71354ab007a"
10-
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
11-
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
12+
nghttp2_jll = "8e850ede-7688-5339-a07c-302acd2aaf8d"
1213

1314
[extras]
1415
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
@@ -17,4 +18,5 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1718
test = ["Test"]
1819

1920
[compat]
21+
CompilerSupportLibraries_jll = "1.3.0"
2022
julia = "1.11"

stdlib/LibCURL_jll/src/LibCURL_jll.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if !(Sys.iswindows() || Sys.isapple())
88
# On Windows and macOS we use system SSL/crypto libraries
99
using OpenSSL_jll
1010
end
11+
using CompilerSupportLibraries_jll
1112

1213
export libcurl
1314

@@ -20,7 +21,9 @@ artifact_dir::String = ""
2021
libcurl_path::String = ""
2122

2223
_libcurl_dependencies = LazyLibrary[libz, libnghttp2, libssh2]
23-
if !(Sys.iswindows() || Sys.isapple())
24+
if Sys.iswindows()
25+
push!(_libcurl_dependencies, libgcc_s)
26+
elseif !Sys.isapple()
2427
append!(_libcurl_dependencies, [libssl, libcrypto])
2528
end
2629

@@ -41,6 +44,12 @@ function eager_mode()
4144
Zlib_jll.eager_mode()
4245
nghttp2_jll.eager_mode()
4346
LibSSH2_jll.eager_mode()
47+
@static if Sys.iswindows()
48+
CompilerSupportLibraries_jll.eager_mode()
49+
end
50+
@static if !(Sys.iswindows() || Sys.isapple())
51+
OpenSSL_jll.eager_mode()
52+
end
4453
dlopen(libcurl)
4554
end
4655
is_available() = true

stdlib/LibGit2_jll/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ OpenSSL_jll = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
77
LibSSH2_jll = "29816b5a-b9ab-546f-933c-edad1886dfa8"
88
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
99
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
10+
CompilerSupportLibraries_jll = "e66e0078-7015-5450-92f7-15fbd957f2ae"
1011

1112
[compat]
1213
julia = "1.9"
14+
CompilerSupportLibraries_jll = "1.3.0"
1315

1416
[extras]
1517
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

stdlib/LibGit2_jll/src/LibGit2_jll.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if !(Sys.iswindows() || Sys.isapple())
88
# On Windows and macOS we use system SSL/crypto libraries
99
using OpenSSL_jll
1010
end
11+
using CompilerSupportLibraries_jll
1112

1213
export libgit2
1314

@@ -27,7 +28,9 @@ else
2728
const _libgit2_path = BundledLazyLibraryPath("libgit2.so.1.9")
2829
end
2930

30-
if Sys.isfreebsd()
31+
if Sys.iswindows()
32+
_libgit2_dependencies = LazyLibrary[libssh2, libgcc_s]
33+
elseif Sys.isfreebsd()
3134
_libgit2_dependencies = LazyLibrary[libssh2, libssl, libcrypto]
3235
else
3336
_libgit2_dependencies = LazyLibrary[libssh2]
@@ -39,6 +42,9 @@ function eager_mode()
3942
@static if !(Sys.iswindows() || Sys.isapple())
4043
OpenSSL_jll.eager_mode()
4144
end
45+
@static if Sys.iswindows()
46+
CompilerSupportLibraries_jll.eager_mode()
47+
end
4248
dlopen(libgit2)
4349
end
4450
is_available() = true

stdlib/LibSSH2_jll/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ OpenSSL_jll = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
77
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
88
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
99
Zlib_jll = "83775a58-1f1d-513f-b197-d71354ab007a"
10+
CompilerSupportLibraries_jll = "e66e0078-7015-5450-92f7-15fbd957f2ae"
1011

1112
[compat]
1213
julia = "1.8"
14+
CompilerSupportLibraries_jll = "1.3.0"
1315

1416
[extras]
1517
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

stdlib/LibSSH2_jll/src/LibSSH2_jll.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if !Sys.iswindows()
88
# On Windows we use system SSL/crypto libraries
99
using OpenSSL_jll
1010
end
11+
using CompilerSupportLibraries_jll
1112

1213
export libssh2
1314

@@ -22,7 +23,7 @@ libssh2_path::String = ""
2223

2324
if Sys.iswindows()
2425
const _libssh2_path = BundledLazyLibraryPath("libssh2.dll")
25-
_libssh2_dependencies = LazyLibrary[]
26+
_libssh2_dependencies = LazyLibrary[libgcc_s]
2627
elseif Sys.isapple()
2728
const _libssh2_path = BundledLazyLibraryPath("libssh2.1.dylib")
2829
_libssh2_dependencies = LazyLibrary[libz, libcrypto]
@@ -40,6 +41,8 @@ function eager_mode()
4041
Zlib_jll.eager_mode()
4142
@static if !Sys.iswindows()
4243
OpenSSL_jll.eager_mode()
44+
else
45+
CompilerSupportLibraries_jll.eager_mode()
4346
end
4447
dlopen(libssh2)
4548
end

stdlib/MPFR_jll/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ uuid = "3a97d323-0669-5f0c-9066-3539efd106a3"
33
version = "4.2.2+0"
44

55
[deps]
6+
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
7+
CompilerSupportLibraries_jll = "e66e0078-7015-5450-92f7-15fbd957f2ae"
68
GMP_jll = "781609d7-10c4-51f6-84f2-b8444358ff6d"
79
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
8-
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
910

1011
[compat]
12+
CompilerSupportLibraries_jll = "1.3.0"
1113
julia = "1.6"
1214

1315
[extras]

stdlib/MPFR_jll/src/MPFR_jll.jl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## dummy stub for https://github.com/JuliaBinaryWrappers/MPFR_jll.jl
44
baremodule MPFR_jll
5-
using Base, Libdl, GMP_jll
5+
using Base, Libdl, GMP_jll, CompilerSupportLibraries_jll
66

77
export libmpfr
88

@@ -22,12 +22,20 @@ else
2222
const _libmpfr_path = BundledLazyLibraryPath("libmpfr.so.6")
2323
end
2424

25-
_libmpfr_dependencies = LazyLibrary[libgmp]
25+
if Sys.iswindows()
26+
_libmpfr_dependencies = LazyLibrary[libgmp, libgcc_s]
27+
else
28+
_libmpfr_dependencies = LazyLibrary[libgmp]
29+
end
2630

2731
const libmpfr = LazyLibrary(_libmpfr_path, dependencies=_libmpfr_dependencies)
2832

2933
function eager_mode()
3034
dlopen(libmpfr)
35+
GMP_jll.eager_mode()
36+
@static if Sys.iswindows()
37+
CompilerSupportLibraries_jll.eager_mode()
38+
end
3139
end
3240
is_available() = true
3341

stdlib/Manifest.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
9191
version = "0.6.4"
9292

9393
[[deps.LibCURL_jll]]
94-
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "OpenSSL_jll", "Zlib_jll", "nghttp2_jll"]
94+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "LibSSH2_jll", "Libdl", "OpenSSL_jll", "Zlib_jll", "nghttp2_jll"]
9595
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
9696
version = "8.12.1+1"
9797

@@ -101,12 +101,12 @@ uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
101101
version = "1.11.0"
102102

103103
[[deps.LibGit2_jll]]
104-
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "OpenSSL_jll"]
104+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "LibSSH2_jll", "Libdl", "OpenSSL_jll"]
105105
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
106106
version = "1.9.0+0"
107107

108108
[[deps.LibSSH2_jll]]
109-
deps = ["Artifacts", "Libdl", "OpenSSL_jll", "Zlib_jll"]
109+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl", "OpenSSL_jll", "Zlib_jll"]
110110
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
111111
version = "1.11.3+1"
112112

@@ -134,7 +134,7 @@ uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
134134
version = "1.11.0"
135135

136136
[[deps.MPFR_jll]]
137-
deps = ["Artifacts", "GMP_jll", "Libdl"]
137+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "GMP_jll", "Libdl"]
138138
uuid = "3a97d323-0669-5f0c-9066-3539efd106a3"
139139
version = "4.2.2+0"
140140

@@ -149,7 +149,7 @@ version = "1.11.0"
149149

150150
[[deps.MozillaCACerts_jll]]
151151
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
152-
version = "2025.2.25"
152+
version = "2025.5.20"
153153

154154
[[deps.NetworkOptions]]
155155
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
@@ -161,7 +161,7 @@ uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
161161
version = "0.3.29+0"
162162

163163
[[deps.OpenLibm_jll]]
164-
deps = ["Artifacts", "Libdl"]
164+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
165165
uuid = "05823500-19ac-5b8b-9628-191a04bc5112"
166166
version = "0.8.5+0"
167167

@@ -275,7 +275,7 @@ uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
275275
version = "1.3.1+2"
276276

277277
[[deps.Zstd_jll]]
278-
deps = ["Libdl"]
278+
deps = ["CompilerSupportLibraries_jll", "Libdl"]
279279
uuid = "3161d3a3-bdf6-5164-811a-617609db77b4"
280280
version = "1.5.7+1"
281281

@@ -295,7 +295,7 @@ uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
295295
version = "5.12.0+0"
296296

297297
[[deps.nghttp2_jll]]
298-
deps = ["Artifacts", "Libdl"]
298+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
299299
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
300300
version = "1.65.0+0"
301301

0 commit comments

Comments
 (0)