mirror of
https://github.com/apple/foundationdb.git
synced 2026-01-25 04:18:18 +00:00
Improve compiler flag for ARM64 (#12589)
Replace -march=armv8.2-a+crc+simd with -march=armv8.2-a+lse+crc since SIMD (NEON) is already mandatory in ARMv8, and LSE (Large System Extensions) is more important, which is supported on Graviton2 and later.
This commit is contained in:
@@ -521,7 +521,7 @@ else()
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
|
||||
# Graviton2 or later
|
||||
# https://github.com/aws/aws-graviton-gettting-started
|
||||
add_compile_options($<${is_cxx_compile}:-march=armv8.2-a+crc+simd>)
|
||||
add_compile_options($<${is_cxx_compile}:-march=armv8.2-a+lse+crc>)
|
||||
endif()
|
||||
|
||||
if (CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
|
||||
|
||||
Reference in New Issue
Block a user