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 Sep 6, 2024
1 parent 8ff3418 commit b9959f5
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 b9959f5

Please sign in to comment.