diff options
author | 2017-09-29 15:51:21 -0400 | |
---|---|---|
committer | 2017-09-29 20:20:24 +0000 | |
commit | bede88e72757ef9f30fa1aa0e62527d841da269c (patch) | |
tree | 4da2cb9fb27fbb72549c03c7cac63d56464d354c /infra/bots/assets/clang_linux/create.py | |
parent | bb76ace72bee5d44189b6ee6c81cda174ce9ea30 (diff) |
Add coverage related binaries to clang_linux asset
Add --depth 1 to the git clone commands to speed up the creation,
since we don't need all of the history ever to build.
Bug: skia:7080
Change-Id: Idcde5657e2097c2dbc259ab29b24d596b5623364
Reviewed-on: https://skia-review.googlesource.com/53481
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'infra/bots/assets/clang_linux/create.py')
-rwxr-xr-x | infra/bots/assets/clang_linux/create.py | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/infra/bots/assets/clang_linux/create.py b/infra/bots/assets/clang_linux/create.py index b68117761d..7c75862bcb 100755 --- a/infra/bots/assets/clang_linux/create.py +++ b/infra/bots/assets/clang_linux/create.py @@ -23,14 +23,20 @@ def create_asset(target_dir): # Build Clang, lld, compiler-rt (sanitizer support) and libc++. os.chdir(tempfile.mkdtemp()) - subprocess.check_call(["git", "clone", "-b", BRANCH, REPO + "llvm"]) + subprocess.check_call(["git", "clone", "--depth", "1", "-b", + BRANCH, REPO + "llvm"]) os.chdir("llvm/tools") - subprocess.check_call(["git", "clone", "-b", BRANCH, REPO + "clang"]) - subprocess.check_call(["git", "clone", "-b", BRANCH, REPO + "lld"]) + subprocess.check_call(["git", "clone", "--depth", "1", "-b", + BRANCH, REPO + "clang"]) + subprocess.check_call(["git", "clone", "--depth", "1", "-b", + BRANCH, REPO + "lld"]) os.chdir("../projects") - subprocess.check_call(["git", "clone", "-b", BRANCH, REPO + "compiler-rt"]) - subprocess.check_call(["git", "clone", "-b", BRANCH, REPO + "libcxx"]) - subprocess.check_call(["git", "clone", "-b", BRANCH, REPO + "libcxxabi"]) + subprocess.check_call(["git", "clone", "--depth", "1", "-b", + BRANCH, REPO + "compiler-rt"]) + subprocess.check_call(["git", "clone", "--depth", "1", "-b", + BRANCH, REPO + "libcxx"]) + subprocess.check_call(["git", "clone", "--depth", "1", "-b", + BRANCH, REPO + "libcxxabi"]) os.chdir("..") os.mkdir("out") os.chdir("out") @@ -43,6 +49,8 @@ def create_asset(target_dir): # Copy a couple extra files we need. subprocess.check_call(["cp", "bin/llvm-symbolizer", target_dir + "/bin"]) + subprocess.check_call(["cp", "bin/llvm-profdata", target_dir + "/bin"]) + subprocess.check_call(["cp", "bin/llvm-cov", target_dir + "/bin"]) libstdcpp = subprocess.check_output(["c++", "-print-file-name=libstdc++.so.6"]) subprocess.check_call(["cp", libstdcpp.strip(), target_dir + "/lib"]) |