Skip to content

Commit 3ec1454

Browse files
authored
Merge pull request #2497 from rust-lang/tshepang-git-clone
tweak some git clone commands
2 parents 0549d8c + 68e9ce3 commit 3ec1454

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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 [email protected]:rust-lang/rust.git
9+
git clone [email protected]: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 [email protected]:llvm/llvm-project.git
69+
git clone [email protected]: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 [email protected]:EnzymeAD/Enzyme.git
80+
git clone [email protected]:EnzymeAD/Enzyme
8181
cd Enzyme/enzyme
8282
mkdir build
8383
cd build

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 [email protected]:rust-lang/rust.git
9+
git clone [email protected]: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 [email protected]:llvm/llvm-project.git
29+
git clone [email protected]:llvm/llvm-project
3030
cd llvm-project
3131
mkdir build
3232
cd build

0 commit comments

Comments
 (0)