Remove support for the lazy jit mode
I might re-implement it in the future, but would probably do so by replacing cranelift-jit. cranelift-jit's api doesn't quite work well for lazy jitting. And even so it adds complexity to cranelift-jit and breaks cranelift-jit outside of x86_64.
This commit is contained in:
parent
0fcd068bec
commit
5d03df9431
6 changed files with 18 additions and 241 deletions
|
|
@ -41,20 +41,13 @@ or
|
|||
$ $cg_clif_dir/dist/rustc-clif -Cllvm-args=jit-mode -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
|
||||
```
|
||||
|
||||
## Shell
|
||||
|
||||
These are a few functions that allow you to easily run rust code from the shell using cg_clif as jit.
|
||||
|
||||
```bash
|
||||
function jit_naked() {
|
||||
echo "$@" | $cg_clif_dir/dist/rustc-clif - -Zunstable-options -Cllvm-args=jit-mode -Cllvm-args=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