From 4784e1e1c9886663d32fd83f08efddf1ada9b1a1 Mon Sep 17 00:00:00 2001 From: Tim Quatmann Date: Thu, 10 Oct 2019 13:17:54 +0200 Subject: [PATCH] Cmake: Temporarily disabled stack checks for current AppleClang. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b67feefb..958e90983 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,6 +190,10 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang") # using AppleClang if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.3) message(FATAL_ERROR "AppleClang version must be at least 7.3.") + elseif ((CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 11.0) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0)) + message(WARNING "Temporarily disabling stack checks for AppleClang 11.0 or higher.") + # TODO: In release mode, stack checks currently fail at runtime. Might be a compiler bug as there does not seem to be faulty behavior. + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-stack-check") endif() set(STORM_COMPILER_APPLECLANG ON)