Skip to content

Commit

Permalink
Add MSVC redistributable DLLs
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jan 13, 2017
1 parent de08aba commit 1281cdf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ end
if get(ENV, "MSYSTEM", "") == "MINGW32"
run(`cp -f $(joinpath("/mingw32", "bin", "libwinpthread-1.dll")) $(joinpath(prefix,"lib$libdir_opt"))`)
run(`cp -f $(joinpath("/mingw32", "bin", "libgcc_s_dw2-1.dll")) $(joinpath(prefix,"lib$libdir_opt"))`)
else
redist_dlls = ["concrt140.dll", "msvcp140.dll", "vccorlib140.dll", "vcruntime140.dll"]
redistbasepath = "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\redist\\$(Sys.WORD_SIZE == 64 ? "x64" : "x86")\\Microsoft.VC140.CRT"
for dll in redist_dlls
cp(joinpath(redistbasepath, dll), joinpath(prefix,"lib$libdir_opt", dll), remove_destination=true)
end
end
end
end

0 comments on commit 1281cdf

Please sign in to comment.