Added a faster method to clone llvm project [DOCS]

Reviewed By: xgupta, amccarth

Differential Revision: https://reviews.llvm.org/D101433
This commit is contained in:
Sushma Unnibhavi 2021-05-05 21:37:22 +05:30 committed by xgupta
parent 0b9447157b
commit 67ee2f870d
1 changed files with 11 additions and 0 deletions

View File

@ -51,6 +51,17 @@ follows:</p>
<ul>
<li>Change directory to where you want the llvm directory placed.</li>
<li><tt>git clone https://github.com/llvm/llvm-project.git</tt></li>
<li>The above command is very slow. It can be made faster by creating a shallow clone. Shallow clone saves storage and speeds up the checkout time. This is done by using the command:
<ul>
<li><tt>git clone --depth=1 https://github.com/llvm/llvm-project.git (using this only the latest version of llvm can be built)</tt></li>
<li>For normal users looking to just compile, this command works fine. But if someone later becomes a contributor, since they can't push code from a shallow clone, it needs to be converted into a full clone:
<ul>
<li><tt>cd llvm-project</tt></li>
<li><tt>git fetch --unshallow</tt></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Build LLVM and Clang: