From d413e7b13c918561361c1c7f7e1f95f5afac1d66 Mon Sep 17 00:00:00 2001 From: begasus Date: Sun, 13 Dec 2020 16:44:38 +0000 Subject: [PATCH] feat(haiku): Don't use fstack-protector on Haiku --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff3f81b9a..1aa47bcb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,7 @@ if (COMPILER_SUPPORTS_WDATE_TIME) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdate-time") endif() -if (NOT WIN32) +if (NOT WIN32 AND NOT HAIKU) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-all") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstack-protector") endif()