On Thu, 14 Mar 2024 12:36:05 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:

> We are setting one of the flags `CFLAGS_JDKLIB`, `CXXFLAGS_JDKLIB`, 
> `CFLAGS_JDKEXE` or `CXXFLAGS_JDKEXE` to `CFLAGS` or `CXXFLAGS`, respectively, 
> in basically all calls to `SetupJdkLibrary` and `SetupJdkExecutable`.
> 
> These flag variables contain a lot of duplication.
> 
> The first step towards bringing some sanity to this mess is to move the 
> setting of these variables into `SetupJdkLibrary/SetupJdkExecutable`.
> 
> In a few places these standard flags are not set, partially or fullly. This 
> is handled by the new arguments `DEFAULT_CFLAGS := false` (to disable the 
> entire setting) and `C[XX]FLAGS_FILTER_OUT` (which excludes some specific 
> flag) to `SetupJdkLibrary/SetupJdkExecutable`.

I have verified with `COMPARE_BUILD` that there is no significant difference in 
the build result with or without this patch on Oracle default CI platforms 
(linux x64/aarch64, macos x64/aarch64, windows x64).

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

PR Comment: https://git.openjdk.org/jdk/pull/18301#issuecomment-1997359912

Reply via email to