Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvement on LLVM build time #20

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion utils/build_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
import sys


# It references the commit day so we can shallow clone
# and still manage to checkout this specific revision.
# NOTE: The revision date must be the day before the
# actual commit date.
_LLVM_REV = "c179d7b006348005d2da228aed4c3c251590baa3"
_LLVM_REV_DATE = "2018-10-08"


def parse_args():
Expand Down Expand Up @@ -166,7 +171,7 @@ def main():
print("Cloning LLVM into {}".format(args.llvm_src_dir))
run_command(
git
+ ["clone", "https://github.com/llvm-mirror/llvm.git", args.llvm_src_dir]
+ ["clone", "--shallow-since", _LLVM_REV_DATE, "https://github.com/llvm-mirror/llvm.git", args.llvm_src_dir]
)

# Checkout a specific revision in LLVM.
Expand Down