RFR: 8370438: Offer link time optimization support on library level

Erik Joelsson erikj at openjdk.org
Thu Oct 30 13:24:43 UTC 2025


On Thu, 30 Oct 2025 08:32:15 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> However it might not work for all versions of these compilers.

When introducing new compiler flags, you need to do one of:

1. Verify that the flags are supported on all versions of the compiler we support. There is a minimum version defined for each. Reading the documentation to find out when the compiler feature was introduced is enough, you don't need to actually test every version yourself.
2. If 1 couldn't be proved, then only add the flag conditionally with a check in configure.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27976#issuecomment-3467974190


More information about the client-libs-dev mailing list