Skip to content

Commit

Permalink
Fix target detection for Windows ARM64EC (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobykahane committed Jan 6, 2024
1 parent 985271c commit d1ed40b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/TargetArch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set(archdetect_c_code
/*
ARM family, known revisions: V5, V6, V7, V8
*/
#if defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM) || defined(_M_ARM64) || defined(__aarch64__) || defined(__ARM64__)
# if defined(__aarch64__) || defined(__ARM64__) || defined(_M_ARM64)
#if defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM) || defined(_M_ARM64) || defined(_M_ARM64EC) || defined(__aarch64__) || defined(__ARM64__)
# if defined(__aarch64__) || defined(__ARM64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
# error cmake_ARCH arm64
# else
# error cmake_ARCH arm
Expand Down
2 changes: 1 addition & 1 deletion cryptopp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ endif()
# Aach32 and Aarch64 #####
# ##############################################################################

if(CRYPTOPP_ARMV8)
if(CRYPTOPP_ARMV8 AND NOT MSVC)
check_compile_link_option(
"-DCRYPTOPP_ARM_NEON_HEADER=1" CRYPTOPP_ARM_NEON_HEADER
"${TEST_PROG_DIR}/test_arm_neon_header.cpp"
Expand Down

0 comments on commit d1ed40b

Please sign in to comment.