diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-02-13 19:31:49 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-04-29 19:13:41 +0200 |
| commit | 2e65a8f2ca9e2d7ffd42ef8b2c21436d4997c35d (patch) | |
| tree | 70d0d9a94a34c6ddc1dbdf966a214257721c9591 /docs | |
| parent | 617171e930cc282ceaa71fd6a6cd18615ad1bf59 (diff) | |
| download | rust-2e65a8f2ca9e2d7ffd42ef8b2c21436d4997c35d.tar.gz rust-2e65a8f2ca9e2d7ffd42ef8b2c21436d4997c35d.zip | |
Use -Zcodegen-backend instead of a rustc replacement in cargo-clif
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/usage.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/usage.md b/docs/usage.md index 785c7383783..33f146e7ba2 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -19,7 +19,7 @@ This will build your project with rustc_codegen_cranelift instead of the usual L > You should prefer using the Cargo method. ```bash -$ $cg_clif_dir/build/bin/cg_clif my_crate.rs +$ $cg_clif_dir/build/rustc-clif my_crate.rs ``` ## Jit mode @@ -38,7 +38,7 @@ $ $cg_clif_dir/build/cargo-clif jit or ```bash -$ $cg_clif_dir/build/bin/cg_clif -Zunstable-features -Cllvm-args=mode=jit -Cprefer-dynamic my_crate.rs +$ $cg_clif_dir/build/rustc-clif -Zunstable-features -Cllvm-args=mode=jit -Cprefer-dynamic my_crate.rs ``` There is also an experimental lazy jit mode. In this mode functions are only compiled once they are @@ -54,7 +54,7 @@ These are a few functions that allow you to easily run rust code from the shell ```bash function jit_naked() { - echo "$@" | $cg_clif_dir/build/bin/cg_clif - -Zunstable-features -Cllvm-args=mode=jit -Cprefer-dynamic + echo "$@" | $cg_clif_dir/build/rustc-clif - -Zunstable-features -Cllvm-args=mode=jit -Cprefer-dynamic } function jit() { |
