Merge commit 'ba315abda7
' into sync_cg_clif-2025-03-30
This commit is contained in:
commit
1111a97886
41 changed files with 533 additions and 1419 deletions
|
@ -38,14 +38,7 @@ $ $cg_clif_dir/dist/cargo-clif jit
|
|||
or
|
||||
|
||||
```bash
|
||||
$ $cg_clif_dir/dist/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
|
||||
first called.
|
||||
|
||||
```bash
|
||||
$ $cg_clif_dir/dist/cargo-clif lazy-jit
|
||||
$ $cg_clif_dir/dist/rustc-clif -Cllvm-args=jit-mode -Cprefer-dynamic my_crate.rs
|
||||
```
|
||||
|
||||
## Shell
|
||||
|
@ -54,7 +47,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/dist/rustc-clif - -Zunstable-options -Cllvm-args=mode=jit-lazy -Cprefer-dynamic
|
||||
echo "$@" | $cg_clif_dir/dist/rustc-clif - -Zunstable-options -Cllvm-args=jit-mode-Cprefer-dynamic
|
||||
}
|
||||
|
||||
function jit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue