@ -194,9 +194,11 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
# u s i n g A p p l e C l a n g
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.0 ) OR ( ( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0.0 ) AND ( CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0.3 ) ) )
message ( WARNING "Disabling stack checks for AppleClang versions between 11.0.0 and 11.0.2." )
# W i t h t h e s e c o m p i l e r v e r s i o n s , s t a c k c h e c k s f a i l i n r e l e a s e mode ( most likely due to a bug in these versions ) .
elseif ( ( CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 11.0.0 ) OR ( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0.0 ) )
message ( WARNING "Disabling stack checks for AppleClang version 11.0.0 or higher." )
# S t a c k c h e c k s a r e k n o w n t o p r o d u c e e r r o r s w i t h t h e f o l l o w i n g C l a n g v e r s i o n s :
# 1 1 . 0 . 0 : R u n t i m e errors ( stack_not_16_byte_aligned_error ) w h e n i n v o k i n g s t o r m i n r e l e a s e m o d e
# 1 1 . 0 . 3 : C a t c h i n g e x c e p t i o n s t h r o w n w i t h i n P R I S M p a r s e r d o e s n o t work ( The exception just falls through )
set ( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-stack-check" )
endif ( )