RFR: JDK-8300531: MSVC CFlags look suspicious [v4]

Justin King jcking at openjdk.org
Tue Feb 14 18:22:34 UTC 2023


On Tue, 14 Feb 2023 17:21:51 GMT, Justin King <jcking at openjdk.org> wrote:

>> Update MSVC CFlags to be more consistent with other compilers. Also disables RTTI in a simliar manner to GCC/Clang for the JVM.
>
> Justin King has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains one commit:
> 
>   Update MSVC CFlags
>   
>   Signed-off-by: Justin King <jcking at google.com>

Okay, got my person box setup. It looks like -Ob3 will inflate the size. So that should be removed, unless performance is greatly improved. Doubtful.

However passing `-GR-` drops the size of the resulting executables, as expected. And using `-O2` doesn't seem to affect size all that much.

I'll continue to investigate.

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

PR: https://git.openjdk.org/jdk/pull/12073



More information about the build-dev mailing list