Skip to content

Commit e175b6f

Browse files
update for new Zstd_jll path in v1.13
1 parent fe7114a commit e175b6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Prefix.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,9 @@ function setup(source::SetupSource{ArchiveSource}, targetdir, verbose; tar_flags
332332
libpath = vcat(XZ_jll.LIBPATH_list, libpath)
333333
end
334334
if Zstd_jll.is_available()
335-
path = vcat(dirname(Zstd_jll.zstd_path), path)
335+
# Zstd_jll became a stdlib in Julia v1.13.0 and the path variable changed name
336+
zpath = VERSION >= v"1.13.0-0" ? Zstd_jll.libzstd_path : Zstd_jll.zstd_path
337+
path = vcat(dirname(zpath), path)
336338
libpath = vcat(Zstd_jll.LIBPATH_list, libpath)
337339
end
338340
unique!(filter!(!isempty, path))

0 commit comments

Comments
 (0)