Skip to content

Commit

Permalink
Use shallow clones in build-llvm.py.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sas committed Mar 2, 2016
1 parent 989e601 commit c691b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/scripts/Xcode/lldbbuild.py
Expand Up @@ -65,7 +65,7 @@ def status (self):
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'])

Expand Down

0 comments on commit c691b14

Please sign in to comment.