Skip to content

Commit ffcc629

Browse files
Add note to emphasize replacing TARGET_TRIPLE (#1250)
1 parent 8a8452c commit ffcc629

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/building/suggested.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be
3232
"--json-output"
3333
],
3434
"rust-analyzer.rustfmt.overrideCommand": [
35-
"./build/TARGET_TRIPLE/stage0/bin/rustfmt",
35+
"./build/$TARGET_TRIPLE/stage0/bin/rustfmt",
3636
"--edition=2021"
3737
],
3838
"editor.formatOnSave": true,
@@ -45,6 +45,11 @@ you can write: <!-- date: 2021-09 --><!-- the date comment is for the edition be
4545
in your `.vscode/settings.json` file. This will ask `rust-analyzer` to use
4646
`x.py check` to check the sources, and the stage 0 rustfmt to format them.
4747

48+
> NOTE: Make sure to replace `TARGET_TRIPLE` in the `rust-analyzer.rustfmt.overrideCommand`
49+
> setting with the appropriate target triple for your machine. An example of such
50+
> a triple is `x86_64-unknown-linux-gnu`. An easy way to check your target triple
51+
> is to run `rustc -vV` and checking the `host` value of its output.
52+
4853
If you're running `coc.nvim`, you can use `:CocLocalConfig` to create a
4954
`.vim/coc-settings.json` and enter the same settings as above, but replacing
5055
`editor.formatOnSave: true,` with

0 commit comments

Comments
 (0)