Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmake/AwsFeatureTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ check_c_source_compiles("

check_c_source_compiles("
int main() {
#if !(defined(__x86_64__) || defined(__i386__) || defined(_M_X64) || defined(_M_IX86))
#if !(defined(__x86_64__) || defined(__i386__) || defined(_M_X64) || defined(_M_IX86)) || defined(_M_ARM64EC_) || defined(_ARM64EC_)
# error \"not intel\"
#endif
return 0;
Expand All @@ -60,7 +60,7 @@ check_c_source_compiles("

check_c_source_compiles("
int main() {
#if !(defined(__x86_64__) || defined(_M_X64))
#if !(defined(__x86_64__) || defined(_M_X64)) || defined(_M_ARM64EC_) || defined(_ARM64EC_)
# error \"not intel\"
#endif
return 0;
Expand All @@ -69,7 +69,7 @@ check_c_source_compiles("

check_c_source_compiles("
int main() {
#if !(defined(__aarch64__) || defined(_M_ARM64))
#if !(defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC_) || defined(_ARM64EC_))
# error \"not arm64\"
#endif
return 0;
Expand Down Expand Up @@ -119,7 +119,7 @@ int main() {
return 1;
}" AWS_HAVE_LINUX_IF_LINK_H)

if(MSVC)
if(MSVC AND NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64EC")
check_c_source_compiles("
#include <intrin.h>
int main() {
Expand Down