llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.31k stars 11.69k forks source link

--depth=1 for Clang compile page #39926

Open llvmbot opened 5 years ago

llvmbot commented 5 years ago
Bugzilla Link 40580
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

For this page; http://clang.llvm.org/get_started.html

This command; git clone https://github.com/llvm/llvm-project.git

Is very slow, but can be made faster with;

git clone --depth=1 https://github.com/llvm/llvm-project.git

Not using --depth=1 would only be interesting for developers. For normal users looking to compile, --depth=1 (only take the top head of the tree) is fine.

Propose the same update to the manual page.

llvmbot commented 3 years ago

I am working on this issue.

llvmbot commented 5 years ago

And/or perhaps the branches can be listed, i.e.

git clone --depth=1 https://github.com/llvm/llvm-project.git -b release/6.x

llvmbot commented 5 years ago

One small caveat; it should be mentioned that using this only the latest version of llvm (i.e. trunk) can be build. Otherwise a branch specifier is needed.