Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download llvm from tarball's rather than shallow clone? #192

Open
nickdesaulniers opened this issue Jun 3, 2022 · 1 comment
Open

download llvm from tarball's rather than shallow clone? #192

nickdesaulniers opened this issue Jun 3, 2022 · 1 comment

Comments

@nickdesaulniers
Copy link
Member

Describe the bug
It looks like downloading llvm is done via git clone. Might be faster to download the tarball? I think https://github.com/llvm/llvm-project/tarball/master works.

To Reproduce
Steps to reproduce the behavior:

$ ./build-llvm.py --pgo kernel-defconfig --no-ccache

Expected behavior
Downloads faster.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Command you ran: ./build-llvm.py --pgo kernel-defconfig --no-ccache
  • Distribution: gLinux (Debian
  • Python version: Python 3.9.12
  • Shell: zsh
@nathanchance
Copy link
Member

It looks like downloading llvm is done via git clone.

Right, we do a full LLVM clone by default (not shallow) so that we can jump around in history if we need to as well as reducing bandwidth for updates.

Might be faster to download the tarball?

I guess it might be; I haven't tried to benchmark that. I suspect that it wouldn't be faster for updates though (over a shallow clone)?

By default, the script downloads its own copy of llvm-project. If you already have a copy that you would like to use, you can use the --llvm-folder option to tell build-llvm.py where it is and it will skip that entire block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants