Use shallow clones in build-llvm.py.

Summary:
This makes cloning (and therefore the whole build) faster.
The checkout step goes from ~4m to ~30s on my host.

Reviewers: tfiala

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D17425

llvm-svn: 262513
This commit is contained in:
Stephane Sezer 2016-03-02 20:53:19 +00:00
parent 989e601b26
commit c691b14a41
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Git:
def diff (self):
return run_in_directory(["git", "diff"], self.spec['root'])
def check_out (self):
run_in_directory(["git", "clone", self.spec['url'], self.spec['root']], lldb_source_path())
run_in_directory(["git", "clone", "--depth=1", self.spec['url'], self.spec['root']], lldb_source_path())
run_in_directory(["git", "fetch", "--all"], self.spec['root'])
run_in_directory(["git", "checkout", self.spec['ref']], self.spec['root'])