RFR: 8342733: Remove references to compiler flags /D_STATIC_CPPLIB and /D_DISABLE_DEPRECATE_STATIC_CPPLIB in win.gradle
Lukasz Kostyra
lkostyra at openjdk.org
Fri Feb 27 13:49:52 UTC 2026
On Sun, 22 Feb 2026 03:32:15 GMT, Anirvan Sarkar <asarkar at openjdk.org> wrote:
> The flags /D_STATIC_CPPLIB and /D_DISABLE_DEPRECATE_STATIC_CPPLIB were required on Visual Studio 2010 to avoid bundling msvcp*.dll. These flags do not work since Visual Studio 2012.
>
> These flags are initially added to common set of Visual Studio compiler flags when JavaFX is built.
>
> Before JDK-8289174, these flags were then removed if JavaFX is built on Visual Studio 2010.
> After JDK-8289174, these flags are always removed when JavaFX is built.
>
> As the addition and removal of these flags are now effectively no-op, references to these flags can be removed.
LGTM. Checked on Windows, both Release and DebugNative builds correctly, Ensemble8 also works.
-------------
Marked as reviewed by lkostyra (Reviewer).
PR Review: https://git.openjdk.org/jfx/pull/2083#pullrequestreview-3867035752
More information about the openjfx-dev
mailing list