Skip to content

tweak some git clone commands #2497

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/autodiff/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In the near future, `std::autodiff` should become available in nightly builds fo

First you need to clone and configure the Rust repository:
```bash
git clone --depth=1 git@github.com:rust-lang/rust.git
git clone git@github.com:rust-lang/rust
cd rust
./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
```
Expand Down Expand Up @@ -45,7 +45,7 @@ apt install wget vim python3 git curl libssl-dev pkg-config lld ninja-build cmak
```
Then build rustc in a slightly altered way:
```bash
git clone --depth=1 https://github.com/rust-lang/rust.git
git clone https://github.com/rust-lang/rust
cd rust
./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
./x dist
Expand All @@ -66,7 +66,7 @@ We recommend that approach, if you just want to use any of them and have no expe
However, if you prefer to just build Enzyme without Rust, then these instructions might help.

```bash
git clone --depth=1 git@github.com:llvm/llvm-project.git
git clone git@github.com:llvm/llvm-project
cd llvm-project
mkdir build
cd build
Expand All @@ -77,7 +77,7 @@ ninja install
This gives you a working LLVM build, now we can continue with building Enzyme.
Leave the `llvm-project` folder, and execute the following commands:
```bash
git clone git@github.com:EnzymeAD/Enzyme.git
git clone git@github.com:EnzymeAD/Enzyme
cd Enzyme/enzyme
mkdir build
cd build
Expand Down
4 changes: 2 additions & 2 deletions src/offload/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In the future, `std::offload` should become available in nightly builds for user

First you need to clone and configure the Rust repository:
```bash
git clone --depth=1 git@github.com:rust-lang/rust.git
git clone git@github.com:rust-lang/rust
cd rust
./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
```
Expand All @@ -26,7 +26,7 @@ rustup toolchain install nightly # enables -Z unstable-options

## Build instruction for LLVM itself
```bash
git clone --depth=1 git@github.com:llvm/llvm-project.git
git clone git@github.com:llvm/llvm-project
cd llvm-project
mkdir build
cd build
Expand Down