From 21e9264e6e7cd80b2baaab86aadde55f7dd7c50f Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Wed, 2 Dec 2015 13:09:04 -0500 Subject: [PATCH] Fixed LLVM archive packaging scripts. --- build/scripts/LLVM.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/scripts/LLVM.lua b/build/scripts/LLVM.lua index ba3700aa..83723fa5 100644 --- a/build/scripts/LLVM.lua +++ b/build/scripts/LLVM.lua @@ -173,7 +173,12 @@ function package_llvm(conf, llvm, llvm_build) end function archive_llvm(dir) - execute("7z a " .. dir .. ".7z " .. "./" .. dir .. "/*") + local archive = dir .. ".7z" + if os.isfile(archive) then os.remove(archive) end + local cwd = os.getcwd() + os.chdir(dir) + execute("7z a " .. path.join("..", archive) .. " *") + os.chdir(cwd) end if _ACTION == "clone_llvm" then