Skip to content

Commit

Permalink
Fix directory of libraries for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
petvana committed Aug 27, 2022
1 parent 95c1aa6 commit 76b3553
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion stdlib/LLD_jll/src/LLD_jll.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ function __init__()
init_lld_path()
PATH[] = dirname(lld_path)
push!(PATH_list, PATH[])
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
if Sys.iswindows()
# On windows, the dynamic libraries (.dll) are in Sys.BINDIR ("usr\\bin")
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), Sys.BINDIR])
else
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
end
LIBPATH[] = join(LIBPATH_list, pathsep)
end

Expand Down

0 comments on commit 76b3553

Please sign in to comment.