Skip to content

Commit

Permalink
don't need to copy nonexistent files
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman committed Aug 5, 2017
1 parent ae4f56c commit 8a78f47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ if is_windows()
for lib in dlls_to_update
# it's possible to move an in-use dll and put a new file where
# it used to be, but not delete or overwrite it in-place?
mv(joinpath(JULIA_HOME, lib * ".dll"), joinpath(JULIA_HOME, lib * "-copy.dll"))
if isfile(joinpath(JULIA_HOME, lib * ".dll"))
mv(joinpath(JULIA_HOME, lib * ".dll"), joinpath(JULIA_HOME, lib * "-copy.dll"))
end
cp(joinpath(winrpm_bin, lib * ".dll"), joinpath(JULIA_HOME, lib * ".dll"))
end
warn("Updated Julia's gcc dlls, you may need to restart Julia for some WinRPM packages to work.")
Expand Down

0 comments on commit 8a78f47

Please sign in to comment.