aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-05-12 23:22:36 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-05-12 23:22:36 -0500
commite984949aa743836739aacadef2ae6d1408aec271 (patch)
tree9b4e780432080dcf40de4c172c44a89d06d19feb
parent25be9d5b9b87acb01695c3957b7e859e8e71fe3c (diff)
parenta021b7126163dca2f9aa04a97c09ff2c0967eea9 (diff)
downloadmonzero-gui-e984949aa743836739aacadef2ae6d1408aec271.tar.gz
monzero-gui-e984949aa743836739aacadef2ae6d1408aec271.tar.xz
monzero-gui-e984949aa743836739aacadef2ae6d1408aec271.zip
Merge pull request #3455
a021b71 cmake: don't add fstack-clash-protection with clang (selsta)
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b2ae3413..264dcf29 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -477,7 +477,7 @@ if (NOT OPENBSD AND NOT (WIN32 AND (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE
add_c_flag_if_supported(-fcf-protection=full C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fcf-protection=full CXX_SECURITY_FLAGS)
endif()
-if (NOT WIN32 AND NOT OPENBSD)
+if (NOT WIN32 AND NOT OPENBSD AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_c_flag_if_supported(-fstack-clash-protection C_SECURITY_FLAGS)
add_cxx_flag_if_supported(-fstack-clash-protection CXX_SECURITY_FLAGS)
endif()