File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ You'll need to point your Cargo.toml to a branch and use a feature flag correspo
22
22
23
23
``` toml
24
24
[dependencies ]
25
- inkwell = { git = " https://github.com/TheDan64/inkwell" , branch = " llvm3-7" , features = [ " llvm3-7 " ] }
25
+ inkwell = { git = " https://github.com/TheDan64/inkwell" , branch = " llvm3-7" }
26
26
```
27
27
28
28
Supported versions:
29
29
30
- | GitHub Branch | Feature Flag |
31
- | :----------- : | :----------: |
32
- | llvm3-6 | llvm3-6 |
33
- | llvm3-7 | llvm3-7 |
34
- | llvm3-8 | llvm3-8 |
30
+ | LLVM Version | GitHub Branch |
31
+ | :----------: | :- ----------: |
32
+ | 3.6.x | llvm3-6 |
33
+ | 3.7.x | llvm3-7 |
34
+ | 3.8.x | llvm3-8 |
35
35
36
36
In the root of your source code you will have to add an extern crate to begin using Inkwell:
37
37
@@ -118,8 +118,8 @@ fn jit_compile_sum(
118
118
```
119
119
120
120
<sup >1</sup > There are two uses of ` unsafe ` in this example because the actual
121
- act of compiling and executing code on the fly is innately ` unsafe ` . For one,
122
- there is no way of verifying we are calling ` get_function() ` with the right function
121
+ act of compiling and executing code on the fly is innately ` unsafe ` . For one,
122
+ there is no way of verifying we are calling ` get_function() ` with the right function
123
123
signature. It is also ` unsafe ` to * call* the function we get because there's no
124
124
guarantee the code itself doesn't do ` unsafe ` things internally (the same reason
125
125
you need ` unsafe ` when calling into C).
You can’t perform that action at this time.
0 commit comments