mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.47k stars 1.58k forks source link

feature req. PGO support for Rust #13371

Open okias opened 1 month ago

okias commented 1 month ago

Would be nice, if meson supported Profile-Guided Optimization with rustc as rust itself supports it

Current outcome: ERROR: rustc does not support "get_profile_generate_args".

dcbaker commented 1 month ago

I think I have some patches for this around somewhere from back in the days when this was still an unstable feature, let me have a look

dcbaker commented 1 month ago

Oh, this is interesting. I didn't have patches, but I did some poking, and our handling of Clang's PGO is completely broken as well, because it needs a different implementation than GCC, the same one that Rustc needs.