On MSVC: `/GL`[1], and `/LTCG`[2]. Former implies latter.
[1]: https://learn.microsoft.com/en-gb/cpp/build/reference/gl-who...
[2]: https://learn.microsoft.com/en-gb/cpp/build/reference/ltcg-l...
These two options also control profile-guided optimisation.