Skip to content

Commit a328396

Browse files
authored
Update the rustc usage section of the readme
1 parent 8de9fbb commit a328396

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ If you compiled cg_clif in debug mode you should use `CHANNEL="debug"` instead o
2525

2626
### Rustc
2727

28+
> You should prefer using the Cargo method.
29+
2830
```bash
29-
$ rustc -Cpanic=abort -Zcodegen-backend=$cg_clif_dir/target/release/librustc_codegen_cranelift.so --sysroot $cg_clif_dir/build_sysroot/sysroot my_crate.rs
31+
$ rustc +$(cat $cg_clif_dir/rust-toolchain) -Cpanic=abort -Zcodegen-backend=$cg_clif_dir/target/release/librustc_codegen_cranelift.so --sysroot $cg_clif_dir/build_sysroot/sysroot my_crate.rs
3032
```
3133

3234
## Env vars

0 commit comments

Comments
 (0)