The setup to be able to use LTO is non-trivial for now (I hope to be able to fix this soon so that liblto_plugin.so
is not required for the case where a linker plugin wasn’t not asked by the user, which is the default).
You need to have in your path the gcc
built with the same version as libgccjit
, which contains libexec/gcc/x86_64-pc-linux-gnu/15.0.0/liblto_plugin.so
.
It does actually clean everything. You need to call
./y.sh prepare
again if you ranclean all
; otherwise, it will fail to find some stuff likerustc-std-workspace-alloc
.I opened an issue to improve the documentation in this regards. Thanks for testing all this: this will help me improve the documentation.