mirror-web/_posts/help/2017-05-28-llvm.md
Harry Chen aab3c46fa5
Add news and help for LLVM repos
Signed-off-by: Harry Chen <i@harrychen.xyz>
2017-05-29 00:35:47 +08:00

967 B

category layout mirrorid
help help llvm

LLVM Git Repos 镜像使用帮助

本镜像镜像了官方的以下仓库:

http://llvm.org/git/{llvm,clang,libcxx,lldb,clang-tools-extra,polly,zorg,compiler-rt,libcxxabi,lld,lnt}

若需要其他的仓库,可从 LLVM 官方 或者 GitHub 镜像 获取。 使用方法:

git clone https://mirrors.tuna.tsinghua.edu.cn/git/llvm/{reponame}.git

其中{reponame}为上述的仓库名称之一。请注意:由于仓库体积均较大,执行git clone可能需要较长时间,并且没有进度提示,请耐心等候。

若要将 TUNA mirror 加入已有代码库,可在已有仓库中运行

git remote add tuna https://mirrors.tuna.tsinghua.edu.cn/git/llvm/{reponame}.git

或运行

git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/llvm/{reponame}.git

将默认上游设置为 TUNA 镜像