about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-19 07:14:20 +0000
committerbors <bors@rust-lang.org>2018-12-19 07:14:20 +0000
commitfdb4d983e2b3b98bae8ab9bf0ce6ee0cac8a655f (patch)
tree103d6a227f0822078446630b3185b3d2be7f6ebd
parent61de562454c42ec96ea2d597bcc46b056ba62865 (diff)
parent987f260543aecd0d2645ba7e1adba77d5b7a72e6 (diff)
downloadrust-fdb4d983e2b3b98bae8ab9bf0ce6ee0cac8a655f.tar.gz
rust-fdb4d983e2b3b98bae8ab9bf0ce6ee0cac8a655f.zip
Auto merge of #3563 - mikerite:readme-syspath, r=phansch
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):*