diff options
| author | asquared31415 <34665709+asquared31415@users.noreply.github.com> | 2021-11-06 05:32:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-06 18:32:55 +0900 |
| commit | f334ea94948528d5b6b9497c798e3b031dde3479 (patch) | |
| tree | a0b2bf969fa6b0d8f1ae0e6d2d7108b532a33fd8 /src/doc/rustc-dev-guide | |
| parent | 621b3a447f0f98829d8b42cc9efaaa82a7c35060 (diff) | |
| download | rust-f334ea94948528d5b6b9497c798e3b031dde3479.tar.gz rust-f334ea94948528d5b6b9497c798e3b031dde3479.zip | |
Add note to emphasize replacing TARGET_TRIPLE (#1250)
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/building/suggested.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/suggested.md b/src/doc/rustc-dev-guide/src/building/suggested.md index 24e25f5d050..284317af71e 100644 --- a/src/doc/rustc-dev-guide/src/building/suggested.md +++ b/src/doc/rustc-dev-guide/src/building/suggested.md @@ -32,7 +32,7 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be "--json-output" ], "rust-analyzer.rustfmt.overrideCommand": [ - "./build/TARGET_TRIPLE/stage0/bin/rustfmt", + "./build/$TARGET_TRIPLE/stage0/bin/rustfmt", "--edition=2021" ], "editor.formatOnSave": true, @@ -45,6 +45,11 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be in your `.vscode/settings.json` file. This will ask `rust-analyzer` to use `x.py check` to check the sources, and the stage 0 rustfmt to format them. +> NOTE: Make sure to replace `TARGET_TRIPLE` in the `rust-analyzer.rustfmt.overrideCommand` +> setting with the appropriate target triple for your machine. An example of such +> a triple is `x86_64-unknown-linux-gnu`. An easy way to check your target triple +> is to run `rustc -vV` and checking the `host` value of its output. + If you're running `coc.nvim`, you can use `:CocLocalConfig` to create a `.vim/coc-settings.json` and enter the same settings as above, but replacing `editor.formatOnSave: true,` with |
