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
-11
Original file line number
Diff line number
Diff line change
@@ -119,17 +119,6 @@ $ CHANNEL="release" $CG_GCCJIT_DIR/y.sh cargo run
119
119
120
120
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.
121
121
122
-
### LTO
123
-
124
-
To use LTO, you need to set the variable `FAT_LTO=1` and `EMBED_LTO_BITCODE=1` in addition to setting `lto = "fat"` in the `Cargo.toml`.
125
-
Don't set `FAT_LTO` when compiling the sysroot, though: only set `EMBED_LTO_BITCODE=1`.
126
-
127
-
Failing to set `EMBED_LTO_BITCODE` will give you the following error:
128
-
129
-
```
130
-
error: failed to copy bitcode to object file: No such file or directory (os error 2)
131
-
```
132
-
133
122
### Rustc
134
123
135
124
If you want to run `rustc` directly, you can do so with:
0 commit comments