Skip to content

Commit 48ab973

Browse files
committed
Don't download LLVM if its destination exists
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 6f784b7 commit 48ab973

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/llvm/LLVM.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ function download_llvm()
187187
-- check if we already have the file downloaded
188188
if os.isfile(archive) then
189189
print("Archive " .. archive .. " already exists.")
190-
else
190+
elseif os.isdir(pkg_name) then
191+
print("Directory " .. pkg_name .. " already exists.")
192+
else
191193
msg, code = download(base .. archive, archive, true)
192194

193195
if msg ~= "OK" then

0 commit comments

Comments
 (0)