Skip to content

Commit

Permalink
Merge cf6566b into 4901c5d
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse authored Oct 15, 2021
2 parents 4901c5d + cf6566b commit 532ed8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmake/compilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN


if (COMPILER_IS_GCC OR COMPILER_IS_CLANG)
# This fails under Fedora - MinGW - Gcc 8.3 and macOS/M1
# This fails under Fedora - MinGW - Gcc 8.3
if (NOT (MINGW OR CYGWIN OR CMAKE_HOST_SOLARIS))
# macOS M1 will set ARCHITECTURE == arm64
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
if ( NOT ${ARCHITECTURE} STREQUAL arm64 )
if (NOT APPLE) # Don't know why this isn't working correctly on Apple with M1 processor
check_cxx_compiler_flag(-fstack-clash-protection HAS_FSTACK_CLASH_PROTECTION)
endif()
check_cxx_compiler_flag(-fcf-protection HAS_FCF_PROTECTION)
Expand Down

0 comments on commit 532ed8c

Please sign in to comment.