[Lldb-commits] [lldb] r262513 - Use shallow clones in build-llvm.py.
Stephane Sezer via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 2 12:53:19 PST 2016
Author: sas
Date: Wed Mar 2 14:53:19 2016
New Revision: 262513
URL: http://llvm.org/viewvc/llvm-project?rev=262513&view=rev
Log:
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
Modified:
lldb/trunk/scripts/Xcode/lldbbuild.py
Modified: lldb/trunk/scripts/Xcode/lldbbuild.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Xcode/lldbbuild.py?rev=262513&r1=262512&r2=262513&view=diff
==============================================================================
--- lldb/trunk/scripts/Xcode/lldbbuild.py (original)
+++ lldb/trunk/scripts/Xcode/lldbbuild.py Wed Mar 2 14:53:19 2016
@@ -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'])
More information about the lldb-commits
mailing list