On Thu, 5 Dec 2024 22:21:43 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:

> Clang has supported _FORTIFY_SOURCE since version 10. We already use it when 
> building with gcc 
> ([JDK-8130017](https://bugs.openjdk.org/browse/JDK-8130017)) in fastdebug 
> builds. We should add it to fastdebug builds with Clang.
> 
> I solved this by unifying the clang/gcc flag setup.

This pull request has now been integrated.

Changeset: 5da0eee3
Author:    Magnus Ihse Bursie <i...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/5da0eee3a6a50f3cffe843717aa07c88be59a4e1
Stats:     23 lines in 1 file changed: 7 ins; 15 del; 1 mod

8285692: Enable _FORTIFY_SOURCE=2 when building with Clang

Reviewed-by: erikj

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

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

Reply via email to