Fix ARM64 identification

The actual arch flag the compiler recognizes is "armv8-a".
This is true for both gcc and clang.
This commit is contained in:
hyc 2017-04-12 23:54:33 +01:00
parent a467321800
commit e65d66fe04

View file

@ -80,9 +80,10 @@ if (ARM_TEST STREQUAL "arm")
endif()
endif()
if (ARM_ID STREQUAL "aarch64" OR ARM_ID STREQUAL "arm64")
if (ARM_ID STREQUAL "aarch64" OR ARM_ID STREQUAL "arm64" OR ARM_ID STREQUAL "armv8-a")
set(ARM 1)
set(ARM8 1)
set(ARCH "armv8-a")
endif()
if(WIN32 OR ARM)