Skip to content

Commit 6e37f9a

Browse files
authored
Add --locked Flag to Cargo Install Instructions
Resolves immunant#323
1 parent 81fbeec commit 6e37f9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ Finally, installing the correct nightly Rust compiler with [Rustup](https://rust
5454

5555
### Installing from crates.io
5656

57-
cargo +nightly-2019-12-05 install c2rust
57+
cargo +nightly-2019-12-05 install c2rust --locked
5858

5959
On OS X with Homebrew LLVM, you need to point the build system at the LLVM installation as follows:
6060

61-
LLVM_CONFIG_PATH=/usr/local/opt/llvm/bin/llvm-config cargo +nightly-2019-12-05 install c2rust
61+
LLVM_CONFIG_PATH=/usr/local/opt/llvm/bin/llvm-config cargo +nightly-2019-12-05 install c2rust --locked
6262

6363
On Linux with Linuxbrew LLVM, you need to point the build system at the LLVM installation as follows:
6464

65-
LLVM_CONFIG_PATH=/home/linuxbrew/.linuxbrew/opt/llvm/bin/llvm-config cargo +nightly-2019-12-05 install c2rust
65+
LLVM_CONFIG_PATH=/home/linuxbrew/.linuxbrew/opt/llvm/bin/llvm-config cargo +nightly-2019-12-05 install c2rust --locked
6666

6767
Note: adjust `LLVM_CONFIG_PATH` accordingly if Linuxbrew was installed to your home directory.
6868

6969
On Gentoo, you need to point the build system to the location of `libclang.so`
7070
and `llvm-config` as follows:
7171

72-
LLVM_CONFIG_PATH=/path/to/llvm-config LIBCLANG_PATH=/path/to/libclang.so cargo +nightly-2019-12-05 install c2rust
72+
LLVM_CONFIG_PATH=/path/to/llvm-config LIBCLANG_PATH=/path/to/libclang.so cargo +nightly-2019-12-05 install c2rust --locked
7373

7474

7575
If you have trouble with building and installing, or want to build from the latest master, the [developer docs](docs/README-developers.md#building-with-system-llvm-libraries) provide more details on the build system.

0 commit comments

Comments
 (0)