Skip to content

Commit

Permalink
Only set mtune neoverse if compiler supports it (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin authored and graebm committed Oct 14, 2024
1 parent cda9704 commit 9582e7f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/AwsSIMD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ else()
set(AWS_AVX512vL_FLAG "-mavx512vl")
set(AWS_CLMUL_FLAG "-mpclmul")
set(AWS_SSE4_2_FLAG "-msse4.2")
set(AWS_ARMv8_1_FLAG "-march=armv8-a+crc+crypto -mtune=neoverse-v1")

check_c_compiler_flag("-mtune=neoverse-v1" HAVE_MTUNE_NEOVERSE_V1)
if (HAVE_MTUNE_NEOVERSE_V1)
set(AWS_ARMv8_1_FLAG "-march=armv8-a+crc+crypto -mtune=neoverse-v1")
else()
set(AWS_ARMv8_1_FLAG "-march=armv8-a+crc+crypto")
endif()
set(WERROR_FLAG "-Werror")
endif()

Expand Down

0 comments on commit 9582e7f

Please sign in to comment.