Skip to content

Commit fb09ef6

Browse files
committed
arm64: require armv8.2-a
1 parent 3469110 commit fb09ef6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMake/HPHPCompiler.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_ID} STREQU
9595
if (IS_X64)
9696
list(APPEND GENERAL_CXX_OPTIONS "march=x86-64-v3")
9797
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -march=x86-64-v3")
98+
elseif (IS_AARCH64)
99+
list(APPEND GENERAL_CXX_OPTIONS "march=armv8.2-a")
98100
endif()
99101

100102
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang") # using Clang

0 commit comments

Comments
 (0)