Skip to content

Commit 113c668

Browse files
fix windows deps
1 parent 09fe0b7 commit 113c668

File tree

8 files changed

+48
-20
lines changed

8 files changed

+48
-20
lines changed

stdlib/LibCURL_jll/src/LibCURL_jll.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using Base, Libdl, nghttp2_jll, LibSSH2_jll, Zlib_jll
77
if !(Sys.iswindows() || Sys.isapple())
88
using OpenSSL_jll
99
end
10-
if Sys.iswindows()
10+
if Sys.iswindows() && Sys.WORD_SIZE == 32
1111
using CompilerSupportLibraries_jll
1212
end
1313

@@ -32,7 +32,11 @@ const libcurl = LazyLibrary(
3232
error("LibCURL_jll: Library 'libcurl' is not available for $(Sys.KERNEL)")
3333
end;
3434
dependencies = if Sys.iswindows()
35-
LazyLibrary[libz, libnghttp2, libssh2, libgcc_s]
35+
if Sys.WORD_SIZE == 32
36+
LazyLibrary[libz, libnghttp2, libssh2, libgcc_s]
37+
else
38+
LazyLibrary[libz, libnghttp2, libssh2]
39+
end
3640
elseif Sys.islinux() || Sys.isfreebsd()
3741
LazyLibrary[libz, libnghttp2, libssh2, libssl, libcrypto]
3842
elseif Sys.isapple()

stdlib/LibGit2_jll/src/LibGit2_jll.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using Base, Libdl, LibSSH2_jll
77
if !(Sys.iswindows() || Sys.isapple())
88
using OpenSSL_jll
99
end
10-
if Sys.iswindows()
10+
if Sys.iswindows() && Sys.WORD_SIZE == 32
1111
using CompilerSupportLibraries_jll
1212
end
1313

@@ -31,8 +31,12 @@ const libgit2 = LazyLibrary(
3131
else
3232
error("LibGit2_jll: Library 'libgit2' is not available for $(Sys.KERNEL)")
3333
end;
34-
dependencies = if Sys.iswindows() && Sys.WORD_SIZE == 32
35-
LazyLibrary[libssh2, libgcc_s]
34+
dependencies = if Sys.iswindows()
35+
if Sys.WORD_SIZE == 32
36+
LazyLibrary[libssh2, libgcc_s]
37+
else
38+
LazyLibrary[libssh2]
39+
end
3640
elseif Sys.isfreebsd() || Sys.islinux()
3741
LazyLibrary[libssh2, libssl, libcrypto]
3842
else

stdlib/LibSSH2_jll/src/LibSSH2_jll.jl

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/LibSSH2_jll.jl
44

55
baremodule LibSSH2_jll
6-
using Base, Libdl, Zlib_jll
7-
if Sys.iswindows()
6+
using Base, Libdl
7+
if Sys.isfreebsd() || Sys.isapple()
8+
using Zlib_jll
9+
end
10+
if Sys.iswindows() && Sys.WORD_SIZE == 32
811
using CompilerSupportLibraries_jll
9-
else
12+
end
13+
if !Sys.iswindows()
1014
using OpenSSL_jll
1115
end
1216

@@ -31,7 +35,11 @@ const libssh2 = LazyLibrary(
3135
error("LibSSH2_jll: Library 'libssh2' is not available for $(Sys.KERNEL)")
3236
end;
3337
dependencies = if Sys.iswindows()
34-
LazyLibrary[libgcc_s]
38+
if Sys.WORD_SIZE == 32
39+
LazyLibrary[libgcc_s]
40+
else
41+
LazyLibrary[]
42+
end
3543
elseif Sys.islinux()
3644
LazyLibrary[libcrypto]
3745
elseif Sys.isfreebsd() || Sys.isapple()
@@ -40,7 +48,9 @@ const libssh2 = LazyLibrary(
4048
)
4149

4250
function eager_mode()
43-
Zlib_jll.eager_mode()
51+
@static if @isdefined Zlib_jll
52+
Zlib_jll.eager_mode()
53+
end
4454
@static if @isdefined CompilerSupportLibraries_jll
4555
CompilerSupportLibraries_jll.eager_mode()
4656
end

stdlib/OpenLibm_jll/src/OpenLibm_jll.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const libopenlibm = LazyLibrary(
2626
BundledLazyLibraryPath("libopenlibm.so.4")
2727
end,
2828
dependencies = if Sys.iswindows()
29-
LazyLibrary[CompilerSupportLibraries_jll.libgcc_s]
29+
LazyLibrary[libgcc_s]
3030
else
3131
LazyLibrary[]
3232
end

stdlib/SuiteSparse_jll/src/SuiteSparse_jll.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
baremodule SuiteSparse_jll
55
using Base, Libdl
66
using libblastrampoline_jll
7-
using CompilerSupportLibraries_jll
7+
if !(Sys.isfreebsd() || Sys.isapple())
8+
using CompilerSupportLibraries_jll
9+
end
810

911
export libamd, libbtf, libcamd, libccolamd, libcholmod, libcolamd, libklu, libldl, librbio, libspqr, libsuitesparseconfig, libumfpack
1012

@@ -66,7 +68,7 @@ const libcolamd = LazyLibrary(
6668
else
6769
error("SuiteSparse_jll: Library 'libcolamd' is not available for $(Sys.KERNEL)")
6870
end;
69-
dependencies = if Sys.iswindows()
71+
dependencies = if Sys.iswindows() && Sys.WORD_SIZE == 32
7072
LazyLibrary[libsuitesparseconfig, libgcc_s]
7173
else
7274
LazyLibrary[libsuitesparseconfig]
@@ -224,7 +226,9 @@ const libumfpack = LazyLibrary(
224226
)
225227

226228
function eager_mode()
227-
CompilerSupportLibraries_jll.eager_mode()
229+
@static if @isdefined CompilerSupportLibraries_jll
230+
CompilerSupportLibraries_jll.eager_mode()
231+
end
228232
libblastrampoline_jll.eager_mode()
229233

230234
dlopen(libamd)

stdlib/Zstd_jll/src/Zstd_jll.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
baremodule Zstd_jll
66
using Base, Libdl
7-
if Sys.iswindows()
7+
if Sys.iswindows() && Sys.WORD_SIZE == 32
88
using CompilerSupportLibraries_jll
99
end
1010

@@ -28,7 +28,7 @@ const libzstd = LazyLibrary(
2828
else
2929
error("Zstd_jll: Library 'libzstd' is not available for $(Sys.KERNEL)")
3030
end;
31-
dependencies = if Sys.iswindows()
31+
dependencies = if Sys.iswindows() && Sys.WORD_SIZE == 32
3232
LazyLibrary[libgcc_s]
3333
else
3434
LazyLibrary[]

stdlib/libLLVM_jll/src/libLLVM_jll.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/libLLVM_jll.jl
44

55
baremodule libLLVM_jll
6-
using Base, Libdl, Zlib_jll, Zstd_jll, CompilerSupportLibraries_jll
6+
using Base, Libdl, Zlib_jll, Zstd_jll
7+
8+
if !Sys.isapple()
9+
using CompilerSupportLibraries_jll
10+
end
711

812
export libLLVM
913

@@ -33,7 +37,9 @@ const libLLVM = LazyLibrary(
3337
)
3438

3539
function eager_mode()
36-
CompilerSupportLibraries_jll.eager_mode()
40+
@static if @isdefined CompilerSupportLibraries_jll
41+
CompilerSupportLibraries_jll.eager_mode()
42+
end
3743
Zlib_jll.eager_mode()
3844
# Zstd_jll.eager_mode() # Not lazy yet
3945
dlopen(libLLVM)

stdlib/nghttp2_jll/src/nghttp2_jll.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## dummy stub for https://github.com/JuliaBinaryWrappers/nghttp2_jll.jl
44
baremodule nghttp2_jll
55
using Base, Libdl
6-
if Sys.iswindows()
6+
if Sys.iswindows() && Sys.WORD_SIZE == 32
77
using CompilerSupportLibraries_jll
88
end
99

@@ -25,7 +25,7 @@ const libnghttp2 = LazyLibrary(
2525
else
2626
BundledLazyLibraryPath("libnghttp2.so.14")
2727
end,
28-
dependencies = if Sys.iswindows()
28+
dependencies = if Sys.iswindows() && Sys.WORD_SIZE == 32
2929
LazyLibrary[libgcc_s]
3030
else
3131
LazyLibrary[]

0 commit comments

Comments
 (0)