Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Mention RUSTC_SAVE_ANALYSIS in contributing.md #530

Merged
merged 1 commit into from
Oct 27, 2017
Merged
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
5 changes: 2 additions & 3 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,10 @@ Everything should now work! You may need to restart the RLS.

### Build it yourself

When you build Rust, add `-Zsave-analysis-api` to your stage 2 flags, e.g., by
setting the environment variable:
When you build Rust, run it with a `RUSTC_SAVE_ANALYSIS=api` environment variable, e.g. with:

```
export RUSTFLAGS_STAGE2='-Zsave-analysis-api'
RUSTC_SAVE_ANALYSIS=api ./x.py build
```

When the build has finished, you should have a bunch of JSON data in a directory like
Expand Down