Skip to content

Commit

Permalink
fix arm cmake (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuna8616 authored Aug 28, 2024
1 parent 2fc19d4 commit 097b3a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/set_arch_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function(set_arch_flags target arch)
message(STATUS "Setting architecture flags for ${arch}")
if(arch MATCHES "x86_64")
target_compile_options(${target} PRIVATE -mavx2 -mpclmul -mbmi -mlzcnt)
elseif(arch MATCHES "arm")
elseif(arch MATCHES "aarch64")
target_compile_options(${target} PRIVATE -march=armv8-a)
else()
message(FATAL_ERROR "Unsupported architecture: ${arch}")
Expand Down
4 changes: 2 additions & 2 deletions scripts/unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Usage:
-g, --gcc compiler is gcc
-c, --clang compiler is clang
-h, --help display this message
--arch={arm|haswell|westmere} target architecture, default is haswell
--arch={aarch64|haswell|westmere} target architecture, default is haswell
--dispatch={dynamic|static} sonic dispatch mode, default is static
example: bash unittest.sh -g --arch=westmere --dispatch=static
Expand Down Expand Up @@ -43,7 +43,7 @@ do
--arch)
case "$2" in
"") shift 2 ;;
arm|haswell|westmere)
aarch64|haswell|westmere)
UNIT_TEST_ARCH="$2"
shift 2 ;;
*)
Expand Down

0 comments on commit 097b3a0

Please # to comment.