diff options
| author | Stephane Sezer <sas@cd80.net> | 2016-03-02 20:53:19 +0000 |
|---|---|---|
| committer | Stephane Sezer <sas@cd80.net> | 2016-03-02 20:53:19 +0000 |
| commit | c691b14a416b81437ac8184c4f918bb5a292c609 (patch) | |
| tree | 3df4fc939250d01eb7940d0006124c6308d16689 /lldb/scripts/Xcode | |
| parent | 989e601b2667619feb0f829fbc02ef5cf64babe8 (diff) | |
| download | bcm5719-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.py | 2 |
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']) |

