Skip to content

Commit

Permalink
update usages of -mshstk and -fstack-protector-strong in the CMakeLis…
Browse files Browse the repository at this point in the history
…ts.txt
  • Loading branch information
i80287 committed Oct 13, 2024
1 parent ac6b607 commit ded9a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ function(configure_gcc_or_clang_gcc_options)
-Wformat=2
-Werror
-pedantic-errors
-fstack-protector-strong
)
if (NOT USING_MINGW_GCC)
if (NOT USING_MINGW_GCC AND CMAKE_SYSTEM_NAME MATCHES "Linux")
set(LOCAL_FN_TEST_COMPILE_OPTIONS
${LOCAL_FN_TEST_COMPILE_OPTIONS}
-fstack-protector-strong
-mshstk
)
endif()
Expand Down

0 comments on commit ded9a8c

Please sign in to comment.