[Lldb-commits] [PATCH] D17425: Use shallow clones in build-llvm.py.
Stephane Sezer via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 18 16:37:28 PST 2016
sas created this revision.
sas added a reviewer: tfiala.
sas added a subscriber: lldb-commits.
This makes cloning (and therefore the whole build) faster.
The checkout step goes from ~4m to ~30s on my host.
http://reviews.llvm.org/D17425
Files:
scripts/Xcode/lldbbuild.py
Index: scripts/Xcode/lldbbuild.py
===================================================================
--- scripts/Xcode/lldbbuild.py
+++ scripts/Xcode/lldbbuild.py
@@ -65,7 +65,7 @@
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'])
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17425.48427.patch
Type: text/x-patch
Size: 673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160219/cef5cc04/attachment.bin>
More information about the lldb-commits
mailing list