From 4e930e95a41691ccbb598431f439ecc4583d7349 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Tue, 1 Jul 2025 12:26:58 +0200 Subject: [PATCH] [UR][CMAKE] Use `-D_FORTIFY_SOURCE=3` This aligns UR settings with the global settings we have in `llvm/cmake/modules/AddSecurityFlags.cmake` which are in turn influenced by our guidelines. --- unified-runtime/cmake/helpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unified-runtime/cmake/helpers.cmake b/unified-runtime/cmake/helpers.cmake index a2d6a26cd35bd..95da58a0318f9 100644 --- a/unified-runtime/cmake/helpers.cmake +++ b/unified-runtime/cmake/helpers.cmake @@ -88,7 +88,7 @@ endif() function(add_ur_target_compile_options name) if(NOT MSVC) - target_compile_definitions(${name} PRIVATE -D_FORTIFY_SOURCE=2) + target_compile_definitions(${name} PRIVATE -D_FORTIFY_SOURCE=3) target_compile_options(${name} PRIVATE # Warning options -Wall