Skip to content

Commit 234faf1

Browse files
authored
Merge pull request #2496 from rust-lang/tshepang-a-convenience
use a consistent (and recommended) invocation
2 parents 2dec976 + bdd6961 commit 234faf1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/autodiff/installation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cd rust
1313

1414
Afterwards you can build rustc using:
1515
```bash
16-
./x.py build --stage 1 library
16+
./x build --stage 1 library
1717
```
1818

1919
Afterwards rustc toolchain link will allow you to use it through cargo:
@@ -25,10 +25,10 @@ rustup toolchain install nightly # enables -Z unstable-options
2525
You can then run our test cases:
2626

2727
```bash
28-
./x.py test --stage 1 tests/codegen/autodiff
29-
./x.py test --stage 1 tests/pretty/autodiff
30-
./x.py test --stage 1 tests/ui/autodiff
31-
./x.py test --stage 1 tests/ui/feature-gates/feature-gate-autodiff.rs
28+
./x test --stage 1 tests/codegen/autodiff
29+
./x test --stage 1 tests/pretty/autodiff
30+
./x test --stage 1 tests/ui/autodiff
31+
./x test --stage 1 tests/ui/feature-gates/feature-gate-autodiff.rs
3232
```
3333

3434
Autodiff is still experimental, so if you want to use it in your own projects, you will need to add `lto="fat"` to your Cargo.toml

src/offload/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cd rust
1313

1414
Afterwards you can build rustc using:
1515
```bash
16-
./x.py build --stage 1 library
16+
./x build --stage 1 library
1717
```
1818

1919
Afterwards rustc toolchain link will allow you to use it through cargo:
@@ -40,7 +40,7 @@ This gives you a working LLVM build.
4040
## Testing
4141
run
4242
```
43-
./x.py test --stage 1 tests/codegen/gpu_offload
43+
./x test --stage 1 tests/codegen/gpu_offload
4444
```
4545

4646
## Usage

0 commit comments

Comments
 (0)