summaryrefslogtreecommitdiff
path: root/flang/README.md
diff options
context:
space:
mode:
authorStephane Chauveau <stephane@chauveau-central.net>2018-02-08 15:59:02 +0100
committerGitHub <noreply@github.com>2018-02-09 10:09:20 +0100
commit6f805b0b7f0a17bb78333d85d2c4b23e0e3c6176 (patch)
tree6bc195123678429c402ea3e7ed10523a6b1e9b3f /flang/README.md
parentad2b8f50a989b67b95a3a9ec5f9238b31777710a (diff)
downloadllvm-6f805b0b7f0a17bb78333d85d2c4b23e0e3c6176.tar.gz
[flang] Simplified git clone in README
Original-commit: flang-compiler/f18@198d2e6c8a8a0ffee461acc76f7d1a252ad366da Reviewed-on: https://github.com/flang-compiler/f18/pull/6 Tree-same-pre-rewrite: false
Diffstat (limited to 'flang/README.md')
-rw-r--r--flang/README.md40
1 files changed, 15 insertions, 25 deletions
diff --git a/flang/README.md b/flang/README.md
index b5c1a248a5b9..9251e3f2e84b 100644
--- a/flang/README.md
+++ b/flang/README.md
@@ -20,32 +20,22 @@
ROOT=$(pwd)
REL=release_50
- git clone https://git.llvm.org/git/llvm.git/
- cd llvm/
- git checkout $REL
-
- cd $ROOT/llvm/tools
- git clone https://git.llvm.org/git/clang.git/
- git checkout $REL
-
- cd $ROOT/llvm/projects
- git clone https://git.llvm.org/git/openmp.git/
- cd openmp
- git checkout $REL
-
- cd $ROOT/llvm/projects
- git clone https://git.llvm.org/git/libcxx.git/
- cd libcxx
- git checkout $REL
-
- cd $ROOT/llvm/projects
- git clone https://git.llvm.org/git/libcxxabi.git/
- cd libcxxabi
- git checkout $REL
+ # To build LLVM and Clang, we only need the head of the requested branch.
+ # Remove --single-branch --depth=1 if you want access to the whole repository
+
+ git clone --branch $REL --single-branch --depth=1 https://git.llvm.org/git/llvm.git/ llvm
+
+ # The following sub-repositories are probably not needed unless you also want to
+ # build clang:
+
+ git clone --branch $REL --single-branch --depth=1 https://git.llvm.org/git/clang.git/ llvm/tools/clang
+ git clone --branch $REL --single-branch --depth=1 https://git.llvm.org/git/openmp.git/ llvm/projects/openmp
+ git clone --branch $REL --single-branch --depth=1 https://git.llvm.org/git/libcxx.git/ llvm/projects/libcxx
+ git clone --branch $REL --single-branch --depth=1 https://git.llvm.org/git/libcxxabi.git/ llvm/projects/libcxxabi
+
- # List the version of all git sub-directories
- # They should all match $REL
- for dir in $(find "$ROOT" -name .git) ; do
+ # List the version of all git sub-directories. They should all match $REL
+ for dir in $(find "$ROOT/llvm" -name .git) ; do
cd $dir/.. ;
printf " %-15s %s\n" "$(git rev-parse --abbrev-ref HEAD)" "$(pwd)" ;
done