From a3283962bc289326c2b908681f0a476c53f428b7 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Wed, 8 Apr 2020 12:32:00 +0200 Subject: [PATCH] Update the rustc usage section of the readme --- Readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 4ff92d705a8..5d86ae5e525 100644 --- a/Readme.md +++ b/Readme.md @@ -25,8 +25,10 @@ If you compiled cg_clif in debug mode you should use `CHANNEL="debug"` instead o ### Rustc +> You should prefer using the Cargo method. + ```bash -$ rustc -Cpanic=abort -Zcodegen-backend=$cg_clif_dir/target/release/librustc_codegen_cranelift.so --sysroot $cg_clif_dir/build_sysroot/sysroot my_crate.rs +$ 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 ``` ## Env vars