about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Wright <mikerite@lavabit.com>2018-12-19 06:13:43 +0200
committerMichael Wright <mikerite@lavabit.com>2018-12-19 06:13:43 +0200
commit987f260543aecd0d2645ba7e1adba77d5b7a72e6 (patch)
tree103d6a227f0822078446630b3185b3d2be7f6ebd
parent61de562454c42ec96ea2d597bcc46b056ba62865 (diff)
downloadrust-987f260543aecd0d2645ba7e1adba77d5b7a72e6.tar.gz
rust-987f260543aecd0d2645ba7e1adba77d5b7a72e6.zip
Update README local run command to specify syspath
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 5c5d32e4a89..13fb8225e59 100644
--- a/README.md
+++ b/README.md
@@ -79,7 +79,7 @@ To have cargo compile your crate with Clippy without Clippy installation
 in your code, you can use:
 
 ```terminal
-cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml
+RUSTFLAGS=--sysroot=`rustc --print sysroot` cargo run --bin cargo-clippy --manifest-path=path_to_clippys_Cargo.toml
 ```
 
 *[Note](https://github.com/rust-lang/rust-clippy/wiki#a-word-of-warning):*