Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 0c69376

Browse files
authored
[build][fix] Use _FORTIFY_SOURCE only for Release build (#339)
1 parent 0ebc390 commit 0c69376

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/gnu_or_clang.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ list(APPEND DML_SECURITY_COMPILE_OPTIONS
88
-fstack-protector
99
--param=ssp-buffer-size=8
1010
-fstack-clash-protection
11-
-U_FORTIFY_SOURCE
12-
-D_FORTIFY_SOURCE=2
11+
$<$<CONFIG:RELEASE>:-U_FORTIFY_SOURCE>
12+
$<$<CONFIG:RELEASE>:-D_FORTIFY_SOURCE=2>
1313
)
1414

1515

0 commit comments

Comments
 (0)