summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Xcode
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2016-03-02 20:53:19 +0000
committerStephane Sezer <sas@cd80.net>2016-03-02 20:53:19 +0000
commitc691b14a416b81437ac8184c4f918bb5a292c609 (patch)
tree3df4fc939250d01eb7940d0006124c6308d16689 /lldb/scripts/Xcode
parent989e601b2667619feb0f829fbc02ef5cf64babe8 (diff)
downloadbcm5719-llvm-c691b14a416b81437ac8184c4f918bb5a292c609.tar.gz
bcm5719-llvm-c691b14a416b81437ac8184c4f918bb5a292c609.zip
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
Diffstat (limited to 'lldb/scripts/Xcode')
-rw-r--r--lldb/scripts/Xcode/lldbbuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/scripts/Xcode/lldbbuild.py b/lldb/scripts/Xcode/lldbbuild.py
index cf79a3ea7d4..bb43315dc29 100644
--- a/lldb/scripts/Xcode/lldbbuild.py
+++ b/lldb/scripts/Xcode/lldbbuild.py
@@ -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'])
OpenPOWER on IntegriCloud