You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,11 +70,17 @@ $ ../gcc/configure \
70
70
$ make -j4 # You can replace `4` with another number depending on how many cores you have.
71
71
```
72
72
73
-
If you want to run libgccjit tests, you will need to also enable the C++ language in the `configure`:
73
+
If you want to run libgccjit tests, you will need to
74
+
* Enable the C++ language in the `configure` step:
74
75
75
76
```bash
76
77
--enable-languages=jit,c++
77
78
```
79
+
* Install [dejagnu](https://www.gnu.org/software/dejagnu/#downloading) to run the tests:
80
+
81
+
```bash
82
+
$ sudo apt install dejagnu
83
+
```
78
84
79
85
Then to run libgccjit tests:
80
86
@@ -135,16 +141,6 @@ $ CHANNEL="release" $CG_GCCJIT_DIR/y.sh cargo run
135
141
136
142
If you compiled cg_gccjit in debug mode (aka you didn't pass `--release` to `./y.sh test`) you should use `CHANNEL="debug"` instead or omit `CHANNEL="release"` completely.
137
143
138
-
### LTO
139
-
140
-
To use LTO, you need to set the variable `EMBED_LTO_BITCODE=1` in addition to setting `lto = "fat"` in the `Cargo.toml`.
141
-
142
-
Failing to set `EMBED_LTO_BITCODE` will give you the following error:
143
-
144
-
```
145
-
error: failed to copy bitcode to object file: No such file or directory (os error 2)
146
-
```
147
-
148
144
### Rustc
149
145
150
146
If you want to run `rustc` directly, you can do so with:
0 commit comments