Browse Source

Don't download LLVM if its destination exists

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1193/head
Dimitar Dobrev 5 years ago
parent
commit
48ab973db6
  1. 4
      build/llvm/LLVM.lua

4
build/llvm/LLVM.lua

@ -187,7 +187,9 @@ function download_llvm() @@ -187,7 +187,9 @@ function download_llvm()
-- check if we already have the file downloaded
if os.isfile(archive) then
print("Archive " .. archive .. " already exists.")
else
elseif os.isdir(pkg_name) then
print("Directory " .. pkg_name .. " already exists.")
else
msg, code = download(base .. archive, archive, true)
if msg ~= "OK" then

Loading…
Cancel
Save