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'])
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'])
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits