Skip to content

Commit 7b394d2

Browse files
committed
tweak some git clone commands
- --depth=1 is more useful for once-off uses, like on ci - .git postfix on github repo url is not needed
1 parent 120a361 commit 7b394d2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/doc/rustc-dev-guide/src/autodiff/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In the near future, `std::autodiff` should become available in nightly builds fo
66

77
First you need to clone and configure the Rust repository:
88
```bash
9-
git clone --depth=1 git@github.com:rust-lang/rust.git
9+
git clone git@github.com:rust-lang/rust
1010
cd rust
1111
./configure --enable-llvm-link-shared --enable-llvm-plugins --enable-llvm-enzyme --release-channel=nightly --enable-llvm-assertions --enable-clang --enable-lld --enable-option-checking --enable-ninja --disable-docs
1212
```
@@ -45,7 +45,7 @@ apt install wget vim python3 git curl libssl-dev pkg-config lld ninja-build cmak
4545
```
4646
Then build rustc in a slightly altered way:
4747
```bash
48-
git clone --depth=1 https://github.com/rust-lang/rust.git
48+
git clone https://github.com/rust-lang/rust
4949
cd rust
5050
./configure --enable-llvm-link-shared --enable-llvm-plugins --enable-llvm-enzyme --release-channel=nightly --enable-llvm-assertions --enable-clang --enable-lld --enable-option-checking --enable-ninja --disable-docs
5151
./x dist
@@ -66,7 +66,7 @@ We recommend that approach, if you just want to use any of them and have no expe
6666
However, if you prefer to just build Enzyme without Rust, then these instructions might help.
6767

6868
```bash
69-
git clone --depth=1 git@github.com:llvm/llvm-project.git
69+
git clone git@github.com:llvm/llvm-project
7070
cd llvm-project
7171
mkdir build
7272
cd build
@@ -77,7 +77,7 @@ ninja install
7777
This gives you a working LLVM build, now we can continue with building Enzyme.
7878
Leave the `llvm-project` folder, and execute the following commands:
7979
```bash
80-
git clone git@github.com:EnzymeAD/Enzyme.git
80+
git clone git@github.com:EnzymeAD/Enzyme
8181
cd Enzyme/enzyme
8282
mkdir build
8383
cd build

src/doc/rustc-dev-guide/src/offload/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In the future, `std::offload` should become available in nightly builds for user
66

77
First you need to clone and configure the Rust repository:
88
```bash
9-
git clone --depth=1 git@github.com:rust-lang/rust.git
9+
git clone git@github.com:rust-lang/rust
1010
cd rust
1111
./configure --enable-llvm-link-shared --release-channel=nightly --enable-llvm-assertions --enable-offload --enable-enzyme --enable-clang --enable-lld --enable-option-checking --enable-ninja --disable-docs
1212
```
@@ -26,7 +26,7 @@ rustup toolchain install nightly # enables -Z unstable-options
2626

2727
## Build instruction for LLVM itself
2828
```bash
29-
git clone --depth=1 git@github.com:llvm/llvm-project.git
29+
git clone git@github.com:llvm/llvm-project
3030
cd llvm-project
3131
mkdir build
3232
cd build

0 commit comments

Comments
 (0)